fix(web): name only what a chat turn touched in the activity card (UF-050)

The card headline was a fixed "Worked across your memory, web & files".
It is now built from the turn: memory, web and file tools it called and
the memory steps the server reported, or a plain Working / Done.
This commit is contained in:
shumeiko.it
2026-10-27 12:54:45 +01:00
parent 711c37358a
commit 06d267dec8
4 changed files with 101 additions and 4 deletions

View File

@@ -78,6 +78,7 @@ Baseline: commit `b20b138` of `git.os-dev.tech/oleg.m/waggle-os`.
| UF-047 | The command palette's search text touches its focus outline | Fixed | Web UI |
| UF-048 | The sidebar account row sits off-center at the bottom | Fixed | Web UI |
| UF-049 | The workspace title stretches when switching tabs | Fixed | Web UI |
| UF-050 | The chat activity card always claims memory, web and files | Fixed | Web UI, chat |
## Entries
@@ -495,3 +496,12 @@ Entries UF-010 to UF-019 come from the UI audit `anti-slop/audit-001-2026-10-14.
- Cause: the title carries a framer-motion `layoutId` for the card-to-header hero morph, and a `layoutId` animates any change of the element's box. The title's width follows the header column, which is as wide as the subtitle row when the name is short; hiding that row on the Chat tab changes the width, and framer animates it with a horizontal scale, which distorts the text.
- What we did: both titles (the header and its loading skeleton) use `layout="position"`, so only their position animates and the hero morph still moves the name into place. The hero-morph test checks the setting; in the browser no tab switch puts a transform on the title any more.
- Recommendation: apply the same change in the main project, and use `layout="position"` for any text that carries a `layoutId`.
### UF-050. The chat activity card always claims memory, web and files
- Status: Fixed
- Found: 2026-10-26
- Where: at commit `b20b138`, `apps/web/src/components/os/apps/chat-blocks/BlockRenderer.tsx:92`
- Symptom: above every answer with steps, the activity card reads "Worked across your memory, web & files", even when the agent only recalled memory, or touched none of the three.
- Cause: the headline is a fixed string; only the step count beside it comes from the turn.
- What we did: the headline is built from the turn itself: memory when a memory tool ran or the server reported recall or saving, the web for search, fetch and browser tools, files for file tools. A turn that touched none of them reads "Working" or "Done". Tests cover a plain turn and a web-and-files turn.
- Recommendation: apply the same change in the main project.