ollama/cmd
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
..
bench Add support for gemma4 (#15214) 2026-04-02 11:33:33 -07:00
config feat(agent): add root onboarding flow 2026-06-17 15:42:21 -07:00
internal cmd/tui: split chat into subpackage and simplify status display 2026-06-23 18:02:33 -07:00
launch feat(agent): polish chat tui loading and approvals 2026-06-18 21:59:45 -07:00
runner Runner for Ollama engine 2025-02-13 17:09:26 -08:00
tui refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
agent_tui.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
agent_tui_test.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
background_unix.go cmd: ollama menu and launch improvements (#14038) 2026-02-09 11:30:16 -08:00
background_windows.go cmd: ollama menu and launch improvements (#14038) 2026-02-09 11:30:16 -08:00
cmd.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
cmd_launcher_test.go chore(agent): polish chat runtime and rendering 2026-06-22 16:48:38 -07:00
cmd_test.go refactor(agent): introduce RunPolicy and drop --hidethinking 2026-06-25 13:20:14 -07:00
start.go nolintlint 2024-06-04 11:13:30 -07:00
start_darwin.go cmd: ollama launch improvements (#14099) 2026-02-05 15:08:17 -08:00
start_default.go lint 2024-08-01 17:06:06 -07:00
start_windows.go spawn desktop quickly (#11011) 2025-06-08 09:34:52 -07:00
warn_thinking_test.go add thinking support to the api and cli (#10584) 2025-05-28 19:38:52 -07:00