Move live background tasks into a composer badge and modal

This commit is contained in:
2026-10-25 21:53:19 +00:00
parent 96178570e5
commit a485ccecb1
15 changed files with 907 additions and 510 deletions
+29
View File
@@ -0,0 +1,29 @@
# Background tasks badge and modal
- Removed the pinned task list from above the transcript. A compact native
`N tasks` button now sits above Send (singular for one task). It remains
discoverable at zero; loading/failed reads never invent a known count.
- Opening it shows a native Material/Cupertino modal with the same live running
task facts and lazy session-scoped, 64 KiB output reads. Selected output appears
under its task. Exits update the count and remove stale selected output.
- The badge and modal share one controller/subscription. A slow snapshot cannot
resurrect an exit or discard a newer live task. Session replacement/disposal
invalidates pending reads and removes only the owned modal, not another route.
- Done, barrier and system Back use normal modal dismissal. Task updates do not
rebuild the transcript; small caption roles preserve composer space at 2x text.
- Refused/unavailable/empty output remains distinguished. Output is selectable,
bounded and explicitly exposed to accessibility.
## Verification
- Full `flutter test`: **1,936 passed**; conversation subset: 304 passed;
focused background controller/modal suite: 25 passed. Clean analysis.
- Real browser probes: Material 1280 and Cupertino 390, using loopback fixtures.
Checked button geometry above Send, absence of inline task content, native
modal, no eager output read, exact bounded query, live exits and empty state.
Captures inspected in `build/background-task-modal-{material,cupertino}/`.
- Existing output and narrow/2x text tests now exercise the modal. New tests
cover live count, Done/Back, session switches, stale reads, owner disposal and
preservation of an unrelated top route.
- This item is implemented separately from the newer prompt/row/stage/sizing
follow-ups. No public deployment or device installation of this item yet.
+15
View File
@@ -0,0 +1,15 @@
# UI follow-up queue
| Item | Source | Verification | Landing | Deployment |
| --- | --- | --- | --- | --- |
| Tasks badge above Send + live modal | Manager implementation complete | 1,936 full tests; clean analysis; Material/Cupertino browser pass | Main, manager commit | Not published |
| Body-priority shared split (target ~60% window, minimum 50%) | Manager, next | Pending | Pending | Not published |
| Optional-by-default custom/preset create prompt | Run 187 partial; direct Luna completion in same worktree | Default-off candidate passes; actual chooser/race guard in progress | Candidate only | Not published |
| Structured multiline chat rows | Run 188 + direct Luna candidate | Further style/narrow fixes required; no browser capture | Candidate only | Not published |
| Prominent run-stage detail hierarchy | Run 189 no-op; direct Luna commit ca6a0516 | 13 focused tests; targeted analysis; browser probe needs repair | Candidate only | Not published |
Prior Enter/shared equal-pane release is separately published as APK
0.1.29882706; see `shared-panes-enter-release.md`. It does not contain these new
follow-ups. Independent workers use separate worktrees; no pipeline definitions
were created or modified. Manager will inspect changes and actual landing,
resolve compatible overlaps, and run an integrated gate before claiming delivery.