okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-clean-3 (321794636): docs and history (cleanup step 3, items 3.0-3.10); release manifest and capability table with checks, history/ with pointers, link check, tools/ split, bench index; owner OK'd the wording 11-082b36e8a02

main
8.2 KiB105 linesraw

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.tsx
  • src/components/ChatToolbar.tsx
  • src/components/ComposerControls.tsx
  • src/components/ArtifactCard.tsx
  • src/components/ChatMedia.tsx
  • src/components/SubagentRow.tsx
  • src/components/Markdown.tsx

Findings to fix (high and medium)

#SeverityStateIssueSuggested fix
1Mediumchat-empty"0 subagents ▾" dropdown with zero itemshide at 0
2Mediumchat-emptyDisabled Send = pale green on pale green, reads as selectedneutral disabled style
3Mediumchat-generatingHeader title clipped mid-word ("…short paragrap") with no ellipsistext-overflow: ellipsis + title attr
4Mediumchat-model-picker"Running" rendered as a disabled outlined buttonstatus chip (green dot + text), not a button
5Mediumchat-templateTemplate cards carry a ▾ chevron, implying expand, but the action is "pick"remove chevron; whole card selectable, "Use template" on hover
6Mediumchat-session-logDialog for an unbuilt feature ("will be connected in a future build"), only "Done"hide the entry until it works
7Mediumchat-slash-commands/new and /clear have identical descriptionsmerge, or /clear = "Clear this conversation"
8Mediumchat-slash-commands/time-skip "Try the two-stream UI demo · add a prompt" — internal jargon"Try two versions and keep the better one"
9Mediumchat-subagents-statusesFailed subagent ("Preview server did not respond") offers no actionRetry / View log on failed rows
10Mediumchat-context-lengthContext limit shows 128K; model supports up to 1M (Engine setting)read limit from engine config
11Mediumchat-approval-collapsed"▶ Read project notes · done" uses native ▶ and bold H3 weight — louder than the approval card it sits abovesmall grey row with chevron icon, like tool calls elsewhere
12Mediumchat-approval-approvedApproved change collapses to "· done"; denied says "· denied" — asymmetric, and "done" hides that a write happened"Approved" (green check) / "Denied" (grey x)
13Mediumchat-artifact-cardsFile cards: subtitle "Website · Open in sidebar" reads like a link but isn't; chevron opens a menu — primary click unclearwhole card opens in sidebar; ••• menu for the rest
14Mediumchat-message-actionsHover "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
15Mediumchat-edit-branchA new branch shows the empty-state hero + suggestions while the composer holds the edited messagehide empty state in branches; show "Editing from: …" note above composer
16Mediumchat-add-menu+ menu mixes demo entries ("Try preview examples", "Try chat showcase") with real actions; no way to attach a file to the messageAttach file / Open website; move demos to Help
17Mediumchat-tool-accessRead only / Workspace write / Full access with no description; Full access not marked as riskyone-line description each; amber for Full access
18Mediumchat-no-conversationsTwo 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)
19Mediumchat-response-completeMarkdown not rendered: "where" shows literal asterisksfix inline emphasis parsing
20Mediumchat-response-completeAfter a reply, stats show "60 tokens/s · — total tokens · 1%" — total missingpopulate total; label 1% ("1% of context")

Optional polish (low)

Do these only if the task is otherwise done and the budget allows.

#SeverityStateIssueSuggested fix
1Lowchat-empty3 suggestion cards in 2-col grid leave an orphan3-col or 1 row of 3
2Lowchat-generatingTwo chats both titled "Chat showcase · code, to…" in listdedupe titles / show distinguishing snippet
3Lowchat-generatingUnexplained green dot on "Build a calm website…" list itemlegend/tooltip ("Unread" / "Running task")
4Lowchat-templateTemplates duplicate but differ from empty-state suggestions (two sets of starters)single set of starters
5Lowchat-slash-commands/setup "choose model", /model "Open Models" — plural/multi-model language"/model Open Model"
6Lowchat-slash-commandsSend turns active with just "/" typedkeep disabled while the input is only a command prefix
7Lowchat-open-website-invalid"Open preview" same pale-green style whether valid or notdisabled style until valid
8Lowchat-showcase-codeText "More" under assistant message next to icon actions••• icon button
9Lowchat-session-statistics"LLM time" jargon; "Turns / tool calls 1 / 2" slash-pair"Thinking & writing"; separate rows
10Lowchat-context-lengthFootnote about compaction "not connected in this build"remove until built
11Lowchat-approval-collapsedExpand chevron floats mid-row, detached from title and from actionsput chevron at far right or next to title
12Lowchat-approval-approvedSection heading "A change waiting for you" stays after it's resolvedupdate heading or treat as static demo copy
13Lowchat-gif-pausedWith preview open, chat column narrows and the composer wraps the model chip onto its own row; visible scrollbar between panescollapse composer controls into icons at narrow widths
14Lowchat-artifact-cardsBlockquote "A calmer place…" is indented with no quote bar, reads as misalignment3px left rule + muted text
15Lowchat-artifact-actionsMenu says "Show in file explorer" while copy above says "Finder"OS-aware label
16Lowchat-message-actions"‹ Latest" pill doesn't say where you are"Branch 1 of 2 · Back to latest"
17Lowchat-edit-branchTitle gets "(branch)" appended in parenthesesbranch icon chip after title
18Lowchat-thinking-menuAuto/Low/Medium/High with no hint of trade-offone-line hint each ("Faster" … "Most careful")

How to check

Run these and fix anything that fails:

  • npm run typecheck
  • node --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.png
  • chat-generating-light.png
  • chat-model-picker-light.png
  • chat-template-light.png
  • chat-session-log-light.png
  • chat-slash-commands-light.png
  • chat-open-website-invalid-light.png
  • chat-showcase-code-light.png
  • chat-subagents-statuses-light.png
  • chat-session-statistics-light.png
  • chat-context-length-light.png
  • chat-approval-collapsed-light.png
  • chat-approval-approved-light.png
  • chat-gif-paused-light.png
  • chat-artifact-cards-light.png
  • chat-artifact-actions-light.png
  • chat-message-actions-light.png
  • chat-edit-branch-light.png
  • chat-add-menu-light.png
  • chat-thinking-menu-light.png
  • chat-tool-access-light.png
  • chat-no-conversations-light.png
  • chat-response-complete-light.png

Done when

  • All checks pass.
  • Commit on branch fix/t11-chat with message T11: 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.