This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Builder Report: remove `e` (edit) option from AI command prompt
|
||||
|
||||
## TL;DR
|
||||
- **Status:** COMPLETE
|
||||
- **Files changed:** `bin/pos-ai`, `DOC/AGENT_Context_Project.md` (gen: line-count update)
|
||||
- **Verification:** `bash -n` ✓, `make gen` ✓, `make check` ✓, `make lint` ✓ (0 FAIL, 0 WARN)
|
||||
- **Scope compliance:** in-scope only; no unauthorized changes
|
||||
|
||||
## Step 1: Remove `e|E)` case and fix prompt text
|
||||
[DONE]
|
||||
|
||||
- Changed prompt from `[Y/n/e(dit)]` to `[Y/n]` (line 379)
|
||||
- Removed the `e|E)` case branch that called `_inject_command` (was lines 388–390)
|
||||
- Kept `n|N)` and `*` (Y/Enter) cases intact
|
||||
|
||||
## Step 2: Delete `_inject_command()` function
|
||||
[DONE]
|
||||
|
||||
- Removed entire function (was lines 399–457, 55 lines + comment header)
|
||||
- Verified no other callers exist (only caller was the deleted `e|E` case)
|
||||
- Cleaned up trailing blank lines
|
||||
|
||||
## Step 3: Verification (`bash -n`, gates)
|
||||
[DONE]
|
||||
|
||||
- `bash -n bin/pos-ai` — syntax OK
|
||||
- `make gen` — regen OK (updated line-count table in `DOC/AGENT_Context_Project.md`: 735→680)
|
||||
- `make check` — OK
|
||||
- `make lint` — 0 FAIL, 0 WARN
|
||||
Reference in New Issue
Block a user