feat(trackers): tasks leave the core for the tasks plugin; tasks + preset pills open a details card #63

Open
gabrielvidal wants to merge 2 commits from tasks-plugin into main
pull from: tasks-plugin
Owner

Summary

The tasks pill on conversation cards now opens a details card like the worktrees pill does, and so does the agent-preset pill. Then, as Gabriel chose, everything task-related leaves the core for the seeded tasks plugin (ai-agent-plugins #61), the way worktrees did: the parsing becomes a generic, declarative tool tracker applied by the host parser, and the pill, its card, the floating Tasks panel and the task-call rows are drawn by the hub from the plugin's declarations, with the same look and motion as before. Merge together with ai-agent-plugins #61.

Key changes

  • Shared pill popover — frontend/src/technical/PillPopover.tsx: the worktrees pill's hover/tap card, extracted. A mouse opens it on hover; a touch taps the pill, which opens the card instead of the conversation. A mouse click still follows the card's or the pill's link. The card is placed inside the viewport and scrolls past N rows.
  • Agent-preset pill card (stays core) — ConvMetaBits.tsx PresetBadge + PresetRouteCard.tsx: the preset, "rung i of n", one row per rung its route touched — skipped (struck, with the reason), sent here (when), stepped down here (when, why) — then harness · login · machine, and the full / exact notes. The owner gets Open preset; a click on the header pill still opens the preset.
  • Tool trackers — backend/plugins/trackers.py, manifest.py: a trackers[] entry may read a neutral tool (tool, ops: snapshot / update / create with input field paths, statuses map) instead of a shell command. Items gain status and startedAt (openedAt = added, closedAt = ended), keep the list's order (max 200), and can't be stamped from outside. The re-derive hints come from the tool's names in their JSON quotes. Reference manifest backend/fixtures/tracker_plugins/tasks.json.
  • Role tasks.list — provides: {"tasks.list": "<tool tracker>"}; the completion scaffold's "Task list" reads it. plugins/carryover_trackers.py: a summary parsed before the plugin keeps its old tasks as the tracker's items until the re-derive pass re-reads it, so past conversations keep their pill from the first request.
  • Host-drawn declarations — ui.card[].list.style: "checklist" (the ✓ done/total pill and its checklist card with "added · started · done · took"), ui.panels[] (the floating panel: TaskPanel.tsx moved to business/plugins/components/Checklist.tsx, not rewritten, plus PluginPanels.tsx), ui.toolCards[] with a tracker (the call rows, business/plugins/trackerCards.tsx).
  • Removed from the core — the parser's task fold (todo_op), the summary / card tasks field and the Task schema, the registered todo tool card (its cost bucket stays), the taskPanel visibility key (a hidden panel carries over to plugin:tasks:panel), 26 core i18n keys.
  • Docs: docs/plugins.md (tool trackers, the checklist list bit, panels, tracker tool cards, the role), CLAUDE.md, docs/transcript-format.md.

Key decisions

  • Forms: tasks-pill-popover_rdyw4k (checklist + times, plan order, 8 rows, the three places), preset-pill-popover_5qiv1d (the route, click opens the preset page), move-tasks-into-a-plugin_tq2l2e (all four pieces move, tool-call rules applied by the host, host draws, seeded + guests + eye switches, popovers folded into the move).
  • Parser stays v48: the popover commit's v49 (task times in the core fold) never shipped, so it was dropped; the tracker's signature-based re-derive replaces it.
  • The tracker engine names no "tasks": ops, field paths and statuses are data, so another tool's list can use it.
  • The Task calls switch, off by default: the thread always stripped the task calls, so a "thread tool card" had nothing to show. The switch keeps today's thread and lets you turn the rows on. Ask Gabriel whether he wants it at all.
  • deleted → cancelled in the plugin's status map (the core ignored it: a deleted task stayed pending).
  • Implementation delegated to a Fable 5.2 hub run on the EVOX2 (conv 8ce710ee), reviewed and re-tested here.

Changelog

  • Added: hovering (or tapping, on a phone) the tasks pill on a conversation card or header shows the checklist — when each task was added, started and done, and how long it took
  • Added: hovering (or tapping) the agent-preset pill shows the conversation's route — the rungs it skipped and why, where it was sent, each step down
  • Changed: the task list (the pill, the floating checklist, the task-call rows) comes from the new Tasks plugin, on by default; Settings' eye popover switches each part

Test notes

  • Backend under bwrap (one module per process): test_trackers 53, test_trackers_hub 21, test_parse_fixtures 32, test_agy_tasks 11, test_guests 58, test_guest_cli 14, test_guest_perf 7 — all pass. test_authz_matrix (2) and test_typed_plugins (1) fail identically on main (the authz diff is the same /api/ask/{ask_id}/cancel row; no route changed here, golden untouched). The run's full sweep: 188 modules, 2,417 passed, the same 9 main failures.
  • Frontend: tsc --noEmit clean; vitest src/business src/lib src/technical src/i18n 190 files / 1,200 passed; after the rebase on main openapi.json / src/generated regenerate to no diff.
  • Screenshots from a live local hub with the plugin seeded (port 8137), phone tap + desktop hover, taken after the last code change; the preset card is from the mock build.
  • Merge with ai-agent-plugins #61; deploy the hub first (or both together) — an older hub skips the plugin's seed. Deploy and plugin reload from the Homelab, not from the EVOX2.
  • Open: a tab opened after the plugin was toggled with no tab open drew the old pill from its persisted cache once (a fresh browser was right) — not investigated.

🤖 Generated with Claude Code

Screenshots

phone-1-home-card-pill.png
desktop-4-header-pill.png
desktop-3-floating-panel.png
phone-6-thread-tool-card.png
desktop-8-plugin-off-thread.png
desk-header-preset.png

## Summary The tasks pill on conversation cards now opens a details card like the worktrees pill does, and so does the agent-preset pill. Then, as Gabriel chose, **everything task-related leaves the core for the seeded `tasks` plugin** (ai-agent-plugins #61), the way worktrees did: the parsing becomes a generic, declarative **tool tracker** applied by the host parser, and the pill, its card, the floating Tasks panel and the task-call rows are drawn by the hub from the plugin's declarations, with the same look and motion as before. **Merge together with ai-agent-plugins #61.** ## Key changes - **Shared pill popover** — `frontend/src/technical/PillPopover.tsx`: the worktrees pill's hover/tap card, extracted. A mouse opens it on hover; a touch taps the pill, which opens the card instead of the conversation. A mouse click still follows the card's or the pill's link. The card is placed inside the viewport and scrolls past N rows. - **Agent-preset pill card** (stays core) — `ConvMetaBits.tsx` `PresetBadge` + `PresetRouteCard.tsx`: the preset, "rung i of n", one row per rung its route touched — skipped (struck, with the reason), sent here (when), stepped down here (when, why) — then harness · login · machine, and the *full* / *exact* notes. The owner gets *Open preset*; a click on the header pill still opens the preset. - **Tool trackers** — `backend/plugins/trackers.py`, `manifest.py`: a `trackers[]` entry may read a neutral **tool** (`tool`, `ops`: `snapshot` / `update` / `create` with input field paths, `statuses` map) instead of a shell command. Items gain `status` and `startedAt` (`openedAt` = added, `closedAt` = ended), keep the list's order (max 200), and can't be stamped from outside. The re-derive hints come from the tool's names in their JSON quotes. Reference manifest `backend/fixtures/tracker_plugins/tasks.json`. - **Role `tasks.list`** — `provides: {"tasks.list": "<tool tracker>"}`; the completion scaffold's "Task list" reads it. `plugins/carryover_trackers.py`: a summary parsed before the plugin keeps its old `tasks` as the tracker's items until the re-derive pass re-reads it, so past conversations keep their pill from the first request. - **Host-drawn declarations** — `ui.card[].list.style: "checklist"` (the `✓ done/total` pill and its checklist card with "added · started · done · took"), `ui.panels[]` (the floating panel: `TaskPanel.tsx` moved to `business/plugins/components/Checklist.tsx`, not rewritten, plus `PluginPanels.tsx`), `ui.toolCards[]` with a `tracker` (the call rows, `business/plugins/trackerCards.tsx`). - **Removed from the core** — the parser's task fold (`todo_op`), the summary / card `tasks` field and the `Task` schema, the registered `todo` tool card (its cost bucket stays), the `taskPanel` visibility key (a hidden panel carries over to `plugin:tasks:panel`), 26 core i18n keys. - Docs: `docs/plugins.md` (tool trackers, the checklist list bit, panels, tracker tool cards, the role), `CLAUDE.md`, `docs/transcript-format.md`. ## Key decisions - **Forms**: `tasks-pill-popover_rdyw4k` (checklist + times, plan order, 8 rows, the three places), `preset-pill-popover_5qiv1d` (the route, click opens the preset page), `move-tasks-into-a-plugin_tq2l2e` (all four pieces move, tool-call rules applied by the host, host draws, seeded + guests + eye switches, popovers folded into the move). - **Parser stays v48**: the popover commit's v49 (task times in the core fold) never shipped, so it was dropped; the tracker's signature-based re-derive replaces it. - **The tracker engine names no "tasks"**: ops, field paths and statuses are data, so another tool's list can use it. - **The *Task calls* switch, off by default**: the thread always stripped the task calls, so a "thread tool card" had nothing to show. The switch keeps today's thread and lets you turn the rows on. *Ask Gabriel whether he wants it at all.* - **`deleted` → cancelled** in the plugin's status map (the core ignored it: a deleted task stayed pending). - Implementation delegated to a Fable 5.2 hub run on the EVOX2 (conv `8ce710ee`), reviewed and re-tested here. ## Changelog - Added: hovering (or tapping, on a phone) the tasks pill on a conversation card or header shows the checklist — when each task was added, started and done, and how long it took - Added: hovering (or tapping) the agent-preset pill shows the conversation's route — the rungs it skipped and why, where it was sent, each step down - Changed: the task list (the pill, the floating checklist, the task-call rows) comes from the new Tasks plugin, on by default; Settings' eye popover switches each part ## Test notes - Backend under bwrap (one module per process): `test_trackers` 53, `test_trackers_hub` 21, `test_parse_fixtures` 32, `test_agy_tasks` 11, `test_guests` 58, `test_guest_cli` 14, `test_guest_perf` 7 — all pass. `test_authz_matrix` (2) and `test_typed_plugins` (1) fail **identically on main** (the authz diff is the same `/api/ask/{ask_id}/cancel` row; no route changed here, golden untouched). The run's full sweep: 188 modules, 2,417 passed, the same 9 main failures. - Frontend: `tsc --noEmit` clean; vitest `src/business src/lib src/technical src/i18n` 190 files / 1,200 passed; after the rebase on main `openapi.json` / `src/generated` regenerate to no diff. - Screenshots from a live local hub with the plugin seeded (port 8137), phone tap + desktop hover, taken after the last code change; the preset card is from the mock build. - Merge with ai-agent-plugins #61; deploy the hub first (or both together) — an older hub skips the plugin's seed. Deploy and plugin reload from the Homelab, not from the EVOX2. - Open: a tab opened after the plugin was toggled with no tab open drew the old pill from its persisted cache once (a fresh browser was right) — not investigated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) ## Screenshots ![phone-1-home-card-pill.png](https://git.gabvdl.xyz/attachments/3589f2c7-7d16-4712-86e8-27ac11931f22) ![desktop-4-header-pill.png](https://git.gabvdl.xyz/attachments/1194c7be-9a5b-46eb-9258-a57426a3edcd) ![desktop-3-floating-panel.png](https://git.gabvdl.xyz/attachments/449e2583-34b9-4cfa-8ad0-1300f9fed91b) ![phone-6-thread-tool-card.png](https://git.gabvdl.xyz/attachments/d6ae1568-f3d6-4358-9942-490ec415d531) ![desktop-8-plugin-off-thread.png](https://git.gabvdl.xyz/attachments/b6e50648-3801-4109-a71a-084ca817d337) ![desk-header-preset.png](https://git.gabvdl.xyz/attachments/6668b3c4-38b0-447d-867b-bbadafb7a97e)
gabrielvidal self-assigned this 2026-12-02 22:32:42 +01:00
gabrielvidal added 2 commits 2026-12-02 22:32:42 +01:00
The worktrees pill's hover/tap card becomes technical/PillPopover, shared by
the tasks pill (the checklist with when each task was added, started, done
and how long it took) and the preset pill (the rungs its route touched:
skipped and why, sent here, stepped down when and why). Parser v49 stamps
createdAt / startedAt / endedAt on each task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generic points the plugin stands on (docs/plugins.md → "Trackers" → Tool
trackers, "Checklists"):
- trackers[]: tool-call rules — `tool` (a neutral tool name) + `ops` (create /
  update by id / whole-list snapshot, told apart by the input's field paths) +
  `statuses`; items gain `status` and `startedAt`, keep the list's order; the
  re-derive pass finds the transcripts by the tool's quoted names
  (toolnames.byte_hints), no PARSER_VERSION bump (48: the unshipped v49 goes)
- provides tasks.list: the completion scaffold reads the task list through
  trackers.provided; an older row's `tasks` is carried over until re-read
- ui.card[].list.style "checklist" (the ✓ done/total pill and its card),
  ui.panels[] (the floating checklist over the thread) and ui.toolCards[]
  naming a tracker (the calls' rows) — declared by the plugin, drawn by the
  app: Checklist.tsx (the old TaskPanel, moved), PluginPanels, trackerCards;
  the tool-card registry has an epoch so mounted rows follow a declared card

Removed from core: todo_op / _task_times and the summary's `tasks`, the card
field, the Task schema, the registered `todo` card (its bucket stays), the
taskPanel switch (a hidden one carries over to plugin:tasks:panel), their
i18n keys.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This pull request has changes conflicting with the target branch.
  • backend/core/i18n_keys/ui.json
  • frontend/src/business/conversations/components/ToolUse.tsx
  • frontend/src/business/conversations/pages/Conversation.tsx
  • frontend/src/business/plugins/components/PluginCardBits.tsx
  • frontend/src/mock/plugins.ts
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin tasks-plugin:tasks-plugin
git checkout tasks-plugin
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gabrielvidal/ai-agent#63