Skip to content

fix(studio): make overflowing transcripts keyboard scrollable - #6057

Merged
ashhart merged 4 commits into
ashhart:mainfrom
garvrao80:codex/studio-transcript-keyboard
Dec 3, 2026
Merged

ashhart merged 4 commits into
ashhart:mainfrom
garvrao80:codex/studio-transcript-keyboard

Conversation

@garvrao80

@garvrao80 garvrao80 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Studio puts the conversation transcript in the keyboard tab order when its contents overflow. It gives keyboard focus a visible outline and supports native scrolling. Tab skips a transcript that fits.

Review follow-up

  • Measure overflow in a layout effect after React attaches the transcript and its content. The browser check now opens the conversation before its data is available, then adds the transcript.
  • The app README documents how to start the browser demo and run the keyboard check with Playwright and Chromium.
  • The resize observer updates React state only when the measured overflow value changes.
  • An invalid Playwright module argument exits nonzero and tells the caller to pass the absolute module path.
  • Added the Desktop release note under Unreleased in CHANGELOG.md.

Checks on this head

  • Head commit: cce06f75ed7c429c7b48280fd66aaa4d1698b752.
  • Lean checker: 110 findings across 9,652 files on base and head, with zero new findings. The checker and its input trees are byte-identical.
  • The standalone Chromium check passed on Windows. It verifies that Tab reaches a late-loaded, overflowing transcript with a visible outline, Page Down scrolls it, Tab reaches the composer, and Tab skips the transcript after it becomes empty. The check on the original base caught the missing explicit tab stop.
  • npm run typecheck, the private-leak guard, git diff --check, and the invalid-module negative check passed on this revision. zig fmt --check build.zig zig passed on the byte-identical Zig tree. The previous revision passed all 923 Desktop test files on Ubuntu and mobile verification on Windows.
  • CI: Fresh checks are running on this head. Linux Desktop passed on fcdc1fb898. On 58672ebb99, the macOS Desktop job passed 922 of 923 files. The unchanged request-log test failed when its fake engine exited with code 3 and logged Metal device lost. The fixture schedules a 300 ms exit and does not mount the renderer. Previous macOS job
  • Not run locally on this revision: the full Desktop and mobile suites, packaged app tests, VoiceOver, and native host tests.

Receipt

N/A. Desktop transcript focus only.

Checklist

  • The title, scope and checks match the current head.
  • The standalone browser check verifies the requested keyboard behavior.
  • The diff uses synthetic fixtures and contains no private paths or personal data.

@garvrao80
garvrao80 marked this pull request as ready for review December 2, 2026 21:02
@ashhart ashhart added kind:app Classified by Synthena as desktop or mobile app synthena:needs-changes Reviewed by Synthena; changes requested labels Dec 2, 2026
@ashhart

ashhart commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Synthena Initial Review — Needs changes (kind:app)

Makes an overflowing Studio conversation transcript a keyboard tab stop with a visible focus outline and native scrolling, while skipping it in tab order when content fits. Adds a standalone Playwright check that verifies both the overflowing and empty scenarios.

  • Failing CI check(s): desktop.

Findings:

  • [NIT] app/src/components/Thread.tsx: The effect depends on [hasThread, threadId] but reads scrollRef/transcriptContentRef imperatively; if the refs attach after the effect runs (e.g., thread loads asynchronously), the initial measure can be a no-op until a resize fires. Suggested fix: Consider a ref callback or a layout effect keyed on the same deps to re-run measurement once refs are attached; the ResizeObserver on the content element will likely catch late attachment, so this is minor.
  • [NIT] app/scripts/check-transcript-keyboard.mjs: The script defaults to a hardcoded demo port and requires a locally installed Playwright/Chromium; it is not wired into npm test or CI, so it only runs when invoked manually. Suggested fix: Document the invocation in the repo scripts README or add an npm script entry so the regression is discoverable and runnable by others.
  • Synthena

@garvrao80
garvrao80 force-pushed the codex/studio-transcript-keyboard branch from 58672eb to fcdc1fb Compare December 3, 2026 03:42
@ashhart ashhart added synthena:needs-ash Needs owner decision and removed synthena:needs-changes Reviewed by Synthena; changes requested labels Dec 3, 2026
@ashhart

ashhart commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Synthena Initial Review — Needs maintainer review (kind:app)

Makes the Studio conversation transcript keyboard-focusable and scrollable when it overflows, with a visible focus outline, and adds a standalone Playwright check plus README instructions.

  • No CHANGELOG.md entry under Unreleased yet; waiting on changelog line before landing.

Findings:

  • [NIT] app/src/components/Thread.tsx: The measure callback runs on every ResizeObserver event and calls setState unconditionally, which can trigger redundant re-renders when the value is unchanged. Suggested fix: Guard the update with a functional set that returns the previous state when the boolean is unchanged, e.g. setTranscriptOverflows(prev => next === prev ? prev : next).
  • [NIT] app/scripts/check-transcript-keyboard.mjs: If the playwright module path argument is wrong, createRequire throws an opaque module-not-found error instead of a helpful message. Suggested fix: Wrap the require in a try/catch that rethrows with guidance about passing the absolute Playwright module path as documented in the README.
  • Synthena

@ashhart ashhart added synthena:ready Reviewed by Synthena and ready for group train and removed synthena:needs-ash Needs owner decision labels Dec 3, 2026
@ashhart

ashhart commented Dec 3, 2026

Copy link
Copy Markdown
Owner

READY — Synthena Initial Review (kind:app)

Initial diff review found no issues on this head commit; this PR is queued for full CI validation and merge train verification.

Makes an overflowing Studio conversation transcript keyboard-focusable with a visible focus outline and native scrolling, while keeping non-overflowing transcripts out of the tab order; adds a standalone Playwright check and README documentation.

  • Synthena

@ashhart
ashhart force-pushed the codex/studio-transcript-keyboard branch from cce06f7 to 4c016fa Compare December 3, 2026 04:42
@ashhart
ashhart merged commit d28a4a1 into ashhart:main Dec 3, 2026
30 of 48 checks passed
@ashhart

ashhart commented Dec 3, 2026

Copy link
Copy Markdown
Owner

Thank you @garvrao80. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

@garvrao80

Copy link
Copy Markdown
Contributor Author

Thanks for landing this. The Unreleased changelog entry currently ends mid-sentence at “transcripts that (#6057).” Would you like me to open a one-line follow-up to finish it with “transcripts that fit add no tab stop”?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:app Classified by Synthena as desktop or mobile app synthena:ready Reviewed by Synthena and ready for group train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants