Commit Graph
6 Commits
Author SHA1 Message Date
linkliti 406b92fcc4 feat(goal): render goal tool calls through a dedicated badge
The goal tool logs its message as its own `goal` type with an `icon://flag` verb headline such as `Setting goal` that names the action without quoting argument text, and a plugin message handler renders it as an AIM badge with green accent styles distinct from the teal response family so goal activity reads like the other dedicated tool surfaces. Regression tests cover the log entry and headline.

Validation: pytest plugins/_goal/tests/test_goal_tool_ui.py plugins/_goal/tests/test_goal_plugin.py
2026-10-21 23:37:32 +03:00
Alessandro 298cb2c05d Speed up chat loading and guard selector refresh races
Run model/profile, context-usage and goal display refreshes independently
of snapshot rendering so chat switches do not wait for their API calls.

Guard refreshes and save completions by request sequence and selected chat.
Pending saves still finish for their original chat, while late responses
cannot replace the current selector state or finish a newer loading cycle.
Add deterministic pending-request and save-race regressions and update
the owning plugin contracts.

Validation: 94 focused tests passed for the loading change, followed by
47 focused tests after the model/profile race fixes. Live checks at
localhost:32081 covered delayed API responses, rapid chat switching,
late profile/preset/clear saves, and desktop/mobile behavior.
2026-10-10 14:10:35 +02:00
Alessandro d7130b8c67 Format long WebUI durations with hours
Add hour-aware output to the shared duration formatter while preserving existing seconds and minutes formatting. Reuse it for the goal elapsed counter and cover both formats with a focused regression test.
2026-08-12 14:34:16 +02:00
Alessandro e8e566d221 Stop idle goal polling
Publish goal revisions through the shared state monitor and refresh the Goal UI only when the selected chat or goal state changes.

Keep the local elapsed-time clock, remove recurring API requests, and cover the state-push contract with focused regressions.
2026-08-12 14:34:15 +02:00
Alessandro 81e5f2872e Resume goals after terminal edits
Detect complete or blocked goals that are reactivated by an edit and submit the revised objective so agent processing restarts.

Cover both terminal states and preserve silent edits for already-active goals.
2026-07-17 15:20:33 +02:00
Alessandro 84c13dab01 Add built-in goal management plugin
Adds the always-enabled _goal plugin with per-chat goal storage, WebUI goal strip, /goal slash command, and agent-facing goal tools.

Includes command-picker integration, focused plugin tests, and the generated 256x256 thumbnail asset.
2026-07-09 17:09:08 +02:00