Commit graph

41 commits

Author SHA1 Message Date
ParthSareen
4784290c9b agent: use platform shell tool names 2026-06-26 17:26:38 -07:00
ParthSareen
b839fa49f0 agent: stabilize windows shell tool 2026-06-26 16:02:00 -07:00
ParthSareen
93bb382f9a agent: improve shell and tui resilience 2026-06-26 15:45:34 -07:00
ParthSareen
7703a00ade refactor(agent): introduce RunPolicy and drop --hidethinking
Replaces the scattered auto-approve plumbing (ApprovalManager.AutoApprove,
chatPermissionMode, opts.AutoApproveTools, and the approvalHandlerAutoApproves
type-switch) with a single RunPolicy value object carrying ToolMode
(Review/FullAccess/Disabled), an ApprovalPolicy strategy, and MaxToolRounds.
Mode is derived once per surface via resolveAgentRunPolicy, and the TUI toggles
it in place via RunPolicyState.

These two changes land together because they share struct-field plumbing in
agent_tui.go: the --hidethinking removal drops HideThinking from the same
gofmt-realigned AgentTUIOptions/runOptions literals that gain the Policy field,
so splitting them would produce intermediate states that do not build.

Also drops the now-unused PermissionNotice() and RunPolicyState.SetPolicy,
and simplifies the headless tool-resolution block.
2026-06-25 13:20:14 -07:00
ParthSareen
a0d99b4a02 refactor(agent): move chat store out of app 2026-06-24 16:11:45 -07:00
ParthSareen
4a34477557 cmd/tui/chat: add raw request debug view 2026-06-24 14:59:45 -07:00
ParthSareen
e785d4e8b9 agent: require approval for web_search and web_fetch tools 2026-06-24 14:48:59 -07:00
ParthSareen
3b54956946 cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
ParthSareen
8f882b054a agent: consolidate compaction helpers and drop trace sink 2026-06-23 14:24:36 -07:00
ParthSareen
e098a6afaa refactor(agent): consolidate chat persistence 2026-06-23 13:59:32 -07:00
ParthSareen
183f03d997 agent: address review feedback 2026-06-23 13:31:18 -07:00
ParthSareen
5e9c48cc40 agent: ignore image bytes in prompt estimates 2026-06-23 10:51:58 -07:00
ParthSareen
6b389711f0 chore(agent): satisfy lint checks 2026-06-22 17:01:47 -07:00
ParthSareen
f5a50a7c3f agent: harden compaction and tui state 2026-06-22 16:49:41 -07:00
ParthSareen
5104df202d chore(agent): polish chat runtime and rendering 2026-06-22 16:48:38 -07:00
ParthSareen
c1ba011f64 agent: add event trace sink 2026-06-22 16:45:01 -07:00
ParthSareen
6d2bbd68e3 feat(agent): refine chat tui flow 2026-06-20 17:23:56 -07:00
ParthSareen
42467c2431 feat(agent): polish chat tui loading and approvals 2026-06-18 21:59:45 -07:00
ParthSareen
9c04e04e6b agent: address review feedback 2026-06-18 16:24:43 -07:00
ParthSareen
d60a21fcaa chore(agent): compact small contexts aggressively 2026-06-18 02:16:20 -07:00
ParthSareen
97c93a93b4 chore(agent): harden compaction and runtime cleanup 2026-06-18 01:52:36 -07:00
ParthSareen
a058a75099 agent: harden resume and context preflight 2026-06-18 01:23:15 -07:00
ParthSareen
c359d22a08 chore: note empty compaction summaries 2026-06-18 00:26:24 -07:00
ParthSareen
0034967cfd feat: refine agent cli flow 2026-06-17 21:30:38 -07:00
ParthSareen
66757a973d chore(agent): handle windows file urls 2026-06-17 16:39:40 -07:00
ParthSareen
a718ed68a1 chore(agent): make windows paths portable 2026-06-17 16:24:44 -07:00
ParthSareen
204f719b77 feat(agent): add root onboarding flow 2026-06-17 15:42:21 -07:00
ParthSareen
9618a45286 feat(agent): improve chat tui workflow 2026-06-17 14:02:21 -07:00
ParthSareen
280b85f8a4 agent: harden tool loop and polish tui 2026-06-15 15:33:47 -07:00
ParthSareen
821a45ca6e agent: update compaction and context tracking 2026-06-12 16:28:58 -07:00
ParthSareen
676facf043 agent: update chat tui controls 2026-06-12 16:28:58 -07:00
ParthSareen
9da4d0c6f8 agent: restore web tool auto approval and TUI scrolling 2026-06-12 16:28:58 -07:00
ParthSareen
f417732279 agent: bound markdown and compaction caches 2026-06-12 16:28:58 -07:00
ParthSareen
72d18c99af agent: validate bash working directory 2026-06-12 16:28:58 -07:00
ParthSareen
02befa963c agent: require approval for web tools 2026-06-12 16:28:58 -07:00
ParthSareen
a743721ec8 agent: harden bash approval classification 2026-06-12 16:28:58 -07:00
ParthSareen
30f206e235 agent: merge model-aware chat store 2026-06-12 16:28:58 -07:00
ParthSareen
13006826f8 agent: batch streaming persistence 2026-06-12 16:28:58 -07:00
ParthSareen
a7c8484bea agent: persist chat images 2026-06-12 16:28:58 -07:00
ParthSareen
3be6794929 agent: unify approval dispatch 2026-06-12 16:28:58 -07:00
ParthSareen
444af2a712 feat: promote agent loop to canonical run path 2026-06-12 16:28:58 -07:00