Skip to content

feat(web): working state, LegendList transcript and first-prompt fix - #139

Merged
sanchitrk merged 8 commits into
canaryfrom
claude/pr-review-optimization-fb0b43
Nov 5, 2026
Merged

sanchitrk merged 8 commits into
canaryfrom
claude/pr-review-optimization-fb0b43

Conversation

@sanchitrk

Copy link
Copy Markdown
Contributor

Lands #135 and #136 (sidebar scroll fade, activity loaders, Logo) with review fixes, plus desktop UI work modelled on T3 Code.

From #135 / #136, with fixes

  • The scroll-fade hook now watches only the scroll container's direct children. Their resize entries already catch nested growth; before, every text tick in the sidebar re-registered every child.
  • Logo merges classes with cn.
  • The loaders use role="img": a status region over a hidden SVG announces nothing.

Steer row flash on a session's first prompt

  • Starting a chat from home briefly showed the first prompt as a queued "Steer" row above the composer (about 870 ms). The server queues it before the run takes it in.
  • The start page now hands its prompt to the new session's view, which shows it as sent until the server echoes it.
  • A sent prompt that hasn't been taken in yet counts as busy (T3 Code's local dispatch), so steer mode, Stop and the loaders show from the first frame.

Working state for every session

  • The session backend already receives every server event. It now keeps the set of sessions with a run going, plus those whose prompt it just sent, and publishes it.
  • The sidebar and tabs read that set, so a session shows as working without a view open. This replaces the per-view running map.
  • Gap: runs started before the app launched aren't known until the server reports run state in snapshots.

Transcript on @legendapp/list

  • Ported the way T3 Code does it, with its 3.3.5 patch: one item per turn, length-bucketed item types, follow at the end while streaming, hold position on prepend, and the latest prompt pinned with anchored end space.
  • The manual stick-to-bottom code, prepend compensation and viewport sizing are removed.
  • Long threads now mount only the visible turns.

Also

  • Sidebar rows are memoized and use content-visibility:auto.
  • knip is set up (knip.jsonc). vp run knip gives the full report, and vp run knip:check now runs in verify for the clean app workspaces. It removed the dead exports and the unused switch component it found there.

Verified

  • vp check, vp run typecheck and vp run knip:check pass.
  • Checked by driving the dev Electron app against a local CodeWork server:
    • first prompt from home
    • follow-ups
    • working state with no view open
    • streaming follow
    • scroll-up detach
    • paging
    • thread switching

Known rough edges (tracked for later; T3 Code shows the first one too)

  • While smooth-following, the newest line can briefly sit under the composer.
  • The list's initial scroll warns on threads with very tall turns. It still lands at the end.

🤖 Generated with Claude Code

prem315 and others added 8 commits November 5, 2026 11:06
- Reuse the scroll-fade hook for sidebar and settings content
- Hide sidebar scrollbars while preserving scrollable content cues
- Track active sessions across views and workspaces
- Show animated loader indicators in the sidebar and switcher
- Respect reduced-motion preferences
- Add a crisp pixel-style Logo component
- Use it in expandable session work logs
Observe only the scroll container's direct children; their resize entries
already catch nested growth. Let Logo merge classes with cn, and give the
loaders an img role, since a status region over a hidden SVG says nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The start page now hands its prompt to the new session's view, which shows
it as sent until the server echoes it, so no steer row flashes above the
composer. A sent prompt not yet taken in reads as busy, so steer mode and
Stop show from the first frame. Sidebar rows are memoized and skip paint
off-screen with content-visibility.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip:check runs in verify for the app workspaces kept clean so far, and
removes the dead exports and the unused switch component it found there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The backend already sees every server event, so it keeps the set of
sessions with a run going, plus those whose prompt it just sent, and
publishes it. The sidebar and tabs read that set, so a session shows as
working without a view open, replacing the per-view running map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Port the transcript to @legendapp/list the way T3 Code does, with its
3.3.5 patch: one item per turn, size buckets by text length, follow at the
end while streaming, hold position on prepend, and keep the latest prompt
pinned with anchored end space. The manual stick-to-bottom, prepend
compensation and viewport sizing it replaces are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sanchitrk
sanchitrk merged commit 583475c into canary Nov 5, 2026
1 check passed
@sanchitrk
sanchitrk deleted the claude/pr-review-optimization-fb0b43 branch November 5, 2026 05:37
This was referenced Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants