ollama/agent
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
..
skills agent: address review feedback 2026-06-18 16:24:43 -07:00
store refactor(agent): move chat store out of app 2026-06-24 16:11:45 -07:00
tools chore(agent): polish chat runtime and rendering 2026-06-22 16:48:38 -07:00
approval.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
approval_test.go agent: require approval for web_search and web_fetch tools 2026-06-24 14:48:59 -07:00
compactor.go cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
compactor_test.go cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
events.go cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
policy.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
registry.go agent: harden tool loop and polish tui 2026-06-15 15:33:47 -07:00
request_preview.go cmd/tui/chat: add raw request debug view 2026-06-24 14:59:45 -07:00
request_preview_test.go cmd/tui/chat: add raw request debug view 2026-06-24 14:59:45 -07:00
session.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
session_test.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
tool_display.go cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
tool_display_test.go cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00