Commit 95e0f68
committed
fix(cli): enable HITL confirmation so file edits actually work
File-modifying tools (write/edit/patch) require a confirmation manager;
without one they fail with "requires confirmation but no HITL confirmation
manager is configured" — so the agent could never edit files in the TUI.
Enable ConfirmationPolicy on the session (long timeout so the approve/deny
modal never expires). Now write/edit emit ConfirmationRequired → the TUI modal
(or /auto) approves → the tool runs → the diff renders. Verified end-to-end
against gpt-4o: "create note.txt with hello" → approved → file written, exit 0.1 parent 2c88188 commit 95e0f68
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
815 | 816 | | |
816 | 817 | | |
817 | 818 | | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
818 | 826 | | |
819 | 827 | | |
820 | 828 | | |
821 | 829 | | |
| 830 | + | |
822 | 831 | | |
823 | 832 | | |
824 | 833 | | |
| |||
828 | 837 | | |
829 | 838 | | |
830 | 839 | | |
| 840 | + | |
831 | 841 | | |
832 | 842 | | |
833 | 843 | | |
| |||
0 commit comments