okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
2b36e8a02
main
T11 · Chat: remaining findings
Phase 3 · 38 findings (0 high, 20 medium, 18 low) · Depends on: T01, T05, T06, T07
Goal
Fix the remaining Chat findings after the shared fixes have landed. Skip any finding that a phase 1 task already resolved.
Files to change
These are the likely files. Read them before editing, and change others only if the fix needs it.
src/screens/Chat.tsxsrc/components/ChatToolbar.tsxsrc/components/ComposerControls.tsxsrc/components/ArtifactCard.tsxsrc/components/ChatMedia.tsxsrc/components/SubagentRow.tsxsrc/components/Markdown.tsx
Findings to fix (high and medium)
| # | Severity | State | Issue | Suggested fix |
|---|---|---|---|---|
| 1 | Medium | chat-empty | "0 subagents ▾" dropdown with zero items | hide at 0 |
| 2 | Medium | chat-empty | Disabled Send = pale green on pale green, reads as selected | neutral disabled style |
| 3 | Medium | chat-generating | Header title clipped mid-word ("…short paragrap") with no ellipsis | text-overflow: ellipsis + title attr |
| 4 | Medium | chat-model-picker | "Running" rendered as a disabled outlined button | status chip (green dot + text), not a button |
| 5 | Medium | chat-template | Template cards carry a ▾ chevron, implying expand, but the action is "pick" | remove chevron; whole card selectable, "Use template" on hover |
| 6 | Medium | chat-session-log | Dialog for an unbuilt feature ("will be connected in a future build"), only "Done" | hide the entry until it works |
| 7 | Medium | chat-slash-commands | /new and /clear have identical descriptions | merge, or /clear = "Clear this conversation" |
| 8 | Medium | chat-slash-commands | /time-skip "Try the two-stream UI demo · add a prompt" — internal jargon | "Try two versions and keep the better one" |
| 9 | Medium | chat-subagents-statuses | Failed subagent ("Preview server did not respond") offers no action | Retry / View log on failed rows |
| 10 | Medium | chat-context-length | Context limit shows 128K; model supports up to 1M (Engine setting) | read limit from engine config |
| 11 | Medium | chat-approval-collapsed | "▶ Read project notes · done" uses native ▶ and bold H3 weight — louder than the approval card it sits above | small grey row with chevron icon, like tool calls elsewhere |
| 12 | Medium | chat-approval-approved | Approved change collapses to "· done"; denied says "· denied" — asymmetric, and "done" hides that a write happened | "Approved" (green check) / "Denied" (grey x) |
| 13 | Medium | chat-artifact-cards | File cards: subtitle "Website · Open in sidebar" reads like a link but isn't; chevron opens a menu — primary click unclear | whole card opens in sidebar; ••• menu for the rest |
| 14 | Medium | chat-message-actions | Hover "branch" icon button sits on top of the user bubble and clips its text ("…a conversat") | place actions below the bubble with the other icons |
| 15 | Medium | chat-edit-branch | A new branch shows the empty-state hero + suggestions while the composer holds the edited message | hide empty state in branches; show "Editing from: …" note above composer |
| 16 | Medium | chat-add-menu | + menu mixes demo entries ("Try preview examples", "Try chat showcase") with real actions; no way to attach a file to the message | Attach file / Open website; move demos to Help |
| 17 | Medium | chat-tool-access | Read only / Workspace write / Full access with no description; Full access not marked as risky | one-line description each; amber for Full access |
| 18 | Medium | chat-no-conversations | Two different empty states: this one (icon, small heading, "Ask a question, work with text…", extra New chat button) vs chat-empty (big heading, suggestions, different subline) | one empty state; drop the redundant New chat button (composer is already live) |
| 19 | Medium | chat-response-complete | Markdown not rendered: "where" shows literal asterisks | fix inline emphasis parsing |
| 20 | Medium | chat-response-complete | After a reply, stats show "60 tokens/s · — total tokens · 1%" — total missing | populate total; label 1% ("1% of context") |
Optional polish (low)
Do these only if the task is otherwise done and the budget allows.
| # | Severity | State | Issue | Suggested fix |
|---|---|---|---|---|
| 1 | Low | chat-empty | 3 suggestion cards in 2-col grid leave an orphan | 3-col or 1 row of 3 |
| 2 | Low | chat-generating | Two chats both titled "Chat showcase · code, to…" in list | dedupe titles / show distinguishing snippet |
| 3 | Low | chat-generating | Unexplained green dot on "Build a calm website…" list item | legend/tooltip ("Unread" / "Running task") |
| 4 | Low | chat-template | Templates duplicate but differ from empty-state suggestions (two sets of starters) | single set of starters |
| 5 | Low | chat-slash-commands | /setup "choose model", /model "Open Models" — plural/multi-model language | "/model Open Model" |
| 6 | Low | chat-slash-commands | Send turns active with just "/" typed | keep disabled while the input is only a command prefix |
| 7 | Low | chat-open-website-invalid | "Open preview" same pale-green style whether valid or not | disabled style until valid |
| 8 | Low | chat-showcase-code | Text "More" under assistant message next to icon actions | ••• icon button |
| 9 | Low | chat-session-statistics | "LLM time" jargon; "Turns / tool calls 1 / 2" slash-pair | "Thinking & writing"; separate rows |
| 10 | Low | chat-context-length | Footnote about compaction "not connected in this build" | remove until built |
| 11 | Low | chat-approval-collapsed | Expand chevron floats mid-row, detached from title and from actions | put chevron at far right or next to title |
| 12 | Low | chat-approval-approved | Section heading "A change waiting for you" stays after it's resolved | update heading or treat as static demo copy |
| 13 | Low | chat-gif-paused | With preview open, chat column narrows and the composer wraps the model chip onto its own row; visible scrollbar between panes | collapse composer controls into icons at narrow widths |
| 14 | Low | chat-artifact-cards | Blockquote "A calmer place…" is indented with no quote bar, reads as misalignment | 3px left rule + muted text |
| 15 | Low | chat-artifact-actions | Menu says "Show in file explorer" while copy above says "Finder" | OS-aware label |
| 16 | Low | chat-message-actions | "‹ Latest" pill doesn't say where you are | "Branch 1 of 2 · Back to latest" |
| 17 | Low | chat-edit-branch | Title gets "(branch)" appended in parentheses | branch icon chip after title |
| 18 | Low | chat-thinking-menu | Auto/Low/Medium/High with no hint of trade-off | one-line hint each ("Faster" … "Most careful") |
How to check
Run these and fix anything that fails:
npm run typechecknode --test tests/(all existing tests stay green)npm run check(typecheck, UI audit, contrast, measure, luminance)npm run build
Task-specific checks:
- Each finding above is resolved in the running app, in light and dark mode.
- Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason.
Screens to re-capture and compare with the audit screenshots in docs/evidence/audit-2026-10-07/:
chat-empty-light.pngchat-generating-light.pngchat-model-picker-light.pngchat-template-light.pngchat-session-log-light.pngchat-slash-commands-light.pngchat-open-website-invalid-light.pngchat-showcase-code-light.pngchat-subagents-statuses-light.pngchat-session-statistics-light.pngchat-context-length-light.pngchat-approval-collapsed-light.pngchat-approval-approved-light.pngchat-gif-paused-light.pngchat-artifact-cards-light.pngchat-artifact-actions-light.pngchat-message-actions-light.pngchat-edit-branch-light.pngchat-add-menu-light.pngchat-thinking-menu-light.pngchat-tool-access-light.pngchat-no-conversations-light.pngchat-response-complete-light.png
Done when
- All checks pass.
- Commit on branch
fix/t11-chatwith messageT11: Chat: remaining findings. - Append a short entry to
audit-fixes/PROGRESS.md: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.
1# T11 · Chat: remaining findings 2 3**Phase 3** · 38 findings (0 high, 20 medium, 18 low) · Depends on: T01, T05, T06, T07 4 5## Goal 6Fix the remaining Chat findings after the shared fixes have landed. Skip any finding that a phase 1 task already resolved. 7 8## Files to change 9These are the likely files. Read them before editing, and change others only if the fix needs it. 10- `src/screens/Chat.tsx` 11- `src/components/ChatToolbar.tsx` 12- `src/components/ComposerControls.tsx` 13- `src/components/ArtifactCard.tsx` 14- `src/components/ChatMedia.tsx` 15- `src/components/SubagentRow.tsx` 16- `src/components/Markdown.tsx` 17 18## Findings to fix (high and medium) 19| # | Severity | State | Issue | Suggested fix | 20|---|---|---|---|---| 21| 1 | Medium | `chat-empty` | "0 subagents ▾" dropdown with zero items | hide at 0 | 22| 2 | Medium | `chat-empty` | Disabled Send = pale green on pale green, reads as selected | neutral disabled style | 23| 3 | Medium | `chat-generating` | Header title clipped mid-word ("…short paragrap") with no ellipsis | text-overflow: ellipsis + title attr | 24| 4 | Medium | `chat-model-picker` | "Running" rendered as a disabled outlined button | status chip (green dot + text), not a button | 25| 5 | Medium | `chat-template` | Template cards carry a ▾ chevron, implying expand, but the action is "pick" | remove chevron; whole card selectable, "Use template" on hover | 26| 6 | Medium | `chat-session-log` | Dialog for an unbuilt feature ("will be connected in a future build"), only "Done" | hide the entry until it works | 27| 7 | Medium | `chat-slash-commands` | /new and /clear have identical descriptions | merge, or /clear = "Clear this conversation" | 28| 8 | Medium | `chat-slash-commands` | /time-skip "Try the two-stream UI demo · add a prompt" — internal jargon | "Try two versions and keep the better one" | 29| 9 | Medium | `chat-subagents-statuses` | Failed subagent ("Preview server did not respond") offers no action | Retry / View log on failed rows | 30| 10 | Medium | `chat-context-length` | Context limit shows 128K; model supports up to 1M (Engine setting) | read limit from engine config | 31| 11 | Medium | `chat-approval-collapsed` | "▶ Read project notes · done" uses native ▶ and bold H3 weight — louder than the approval card it sits above | small grey row with chevron icon, like tool calls elsewhere | 32| 12 | Medium | `chat-approval-approved` | Approved change collapses to "· done"; denied says "· denied" — asymmetric, and "done" hides that a write happened | "Approved" (green check) / "Denied" (grey x) | 33| 13 | Medium | `chat-artifact-cards` | File cards: subtitle "Website · Open in sidebar" reads like a link but isn't; chevron opens a menu — primary click unclear | whole card opens in sidebar; ••• menu for the rest | 34| 14 | Medium | `chat-message-actions` | Hover "branch" icon button sits on top of the user bubble and clips its text ("…a conversat") | place actions below the bubble with the other icons | 35| 15 | Medium | `chat-edit-branch` | A new branch shows the empty-state hero + suggestions while the composer holds the edited message | hide empty state in branches; show "Editing from: …" note above composer | 36| 16 | Medium | `chat-add-menu` | + menu mixes demo entries ("Try preview examples", "Try chat showcase") with real actions; no way to attach a file to the message | Attach file / Open website; move demos to Help | 37| 17 | Medium | `chat-tool-access` | Read only / Workspace write / Full access with no description; Full access not marked as risky | one-line description each; amber for Full access | 38| 18 | Medium | `chat-no-conversations` | Two different empty states: this one (icon, small heading, "Ask a question, work with text…", extra New chat button) vs chat-empty (big heading, suggestions, different subline) | one empty state; drop the redundant New chat button (composer is already live) | 39| 19 | Medium | `chat-response-complete` | Markdown not rendered: "*where*" shows literal asterisks | fix inline emphasis parsing | 40| 20 | Medium | `chat-response-complete` | After a reply, stats show "60 tokens/s · — total tokens · 1%" — total missing | populate total; label 1% ("1% of context") | 41 42## Optional polish (low) 43Do these only if the task is otherwise done and the budget allows. 44 45| # | Severity | State | Issue | Suggested fix | 46|---|---|---|---|---| 47| 1 | Low | `chat-empty` | 3 suggestion cards in 2-col grid leave an orphan | 3-col or 1 row of 3 | 48| 2 | Low | `chat-generating` | Two chats both titled "Chat showcase · code, to…" in list | dedupe titles / show distinguishing snippet | 49| 3 | Low | `chat-generating` | Unexplained green dot on "Build a calm website…" list item | legend/tooltip ("Unread" / "Running task") | 50| 4 | Low | `chat-template` | Templates duplicate but differ from empty-state suggestions (two sets of starters) | single set of starters | 51| 5 | Low | `chat-slash-commands` | /setup "choose model", /model "Open Models" — plural/multi-model language | "/model Open Model" | 52| 6 | Low | `chat-slash-commands` | Send turns active with just "/" typed | keep disabled while the input is only a command prefix | 53| 7 | Low | `chat-open-website-invalid` | "Open preview" same pale-green style whether valid or not | disabled style until valid | 54| 8 | Low | `chat-showcase-code` | Text "More" under assistant message next to icon actions | ••• icon button | 55| 9 | Low | `chat-session-statistics` | "LLM time" jargon; "Turns / tool calls 1 / 2" slash-pair | "Thinking & writing"; separate rows | 56| 10 | Low | `chat-context-length` | Footnote about compaction "not connected in this build" | remove until built | 57| 11 | Low | `chat-approval-collapsed` | Expand chevron floats mid-row, detached from title and from actions | put chevron at far right or next to title | 58| 12 | Low | `chat-approval-approved` | Section heading "A change waiting for you" stays after it's resolved | update heading or treat as static demo copy | 59| 13 | Low | `chat-gif-paused` | With preview open, chat column narrows and the composer wraps the model chip onto its own row; visible scrollbar between panes | collapse composer controls into icons at narrow widths | 60| 14 | Low | `chat-artifact-cards` | Blockquote "A calmer place…" is indented with no quote bar, reads as misalignment | 3px left rule + muted text | 61| 15 | Low | `chat-artifact-actions` | Menu says "Show in file explorer" while copy above says "Finder" | OS-aware label | 62| 16 | Low | `chat-message-actions` | "‹ Latest" pill doesn't say where you are | "Branch 1 of 2 · Back to latest" | 63| 17 | Low | `chat-edit-branch` | Title gets "(branch)" appended in parentheses | branch icon chip after title | 64| 18 | Low | `chat-thinking-menu` | Auto/Low/Medium/High with no hint of trade-off | one-line hint each ("Faster" … "Most careful") | 65 66## How to check 67Run these and fix anything that fails: 68- `npm run typecheck` 69- `node --test tests/` (all existing tests stay green) 70- `npm run check` (typecheck, UI audit, contrast, measure, luminance) 71- `npm run build` 72 73Task-specific checks: 74- [ ] Each finding above is resolved in the running app, in light and dark mode. 75- [ ] Each finding above is resolved, or marked "already fixed by Txx" or "not reproducible" with a one-line reason. 76 77Screens to re-capture and compare with the audit screenshots in `docs/evidence/audit-2026-10-07/`: 78- `chat-empty-light.png` 79- `chat-generating-light.png` 80- `chat-model-picker-light.png` 81- `chat-template-light.png` 82- `chat-session-log-light.png` 83- `chat-slash-commands-light.png` 84- `chat-open-website-invalid-light.png` 85- `chat-showcase-code-light.png` 86- `chat-subagents-statuses-light.png` 87- `chat-session-statistics-light.png` 88- `chat-context-length-light.png` 89- `chat-approval-collapsed-light.png` 90- `chat-approval-approved-light.png` 91- `chat-gif-paused-light.png` 92- `chat-artifact-cards-light.png` 93- `chat-artifact-actions-light.png` 94- `chat-message-actions-light.png` 95- `chat-edit-branch-light.png` 96- `chat-add-menu-light.png` 97- `chat-thinking-menu-light.png` 98- `chat-tool-access-light.png` 99- `chat-no-conversations-light.png` 100- `chat-response-complete-light.png` 101 102## Done when 103- All checks pass. 104- Commit on branch `fix/t11-chat` with message `T11: Chat: remaining findings`. 105- Append a short entry to `audit-fixes/PROGRESS.md`: what changed, which findings were fixed, skipped or not reproducible, and anything the reviewer should look at.