GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): Esc in a font family field closes Settings when no edit is pending by only21mil · Pull Request #42361 · pingdotgg/t3code

Conversation

@only21mil

@only21mil only21mil commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Problem

When the browser cannot list installed fonts (Firefox and Safari, or Chrome before local font access is allowed), each font family field in Settings → Appearance (Interface and Monospace, plus Prompt, Code, and Terminal under Separate fonts) is a plain text input, and it intercepted every Esc. So Esc in one of these fields never closed Settings, even with nothing to discard: on an untouched field, or right after an Esc that already discarded a draft.

Change

FontFamilySettingsRow now intercepts Esc only when the field holds an uncommitted draft (draft !== value), which that Esc still discards. Otherwise Esc reaches Settings and closes it, the same as the auto-settle days field in SettingsPanels.tsx (field.dirty). A held Esc after a discard still leaves Settings open, because AppRouteModal ignores repeated Esc keydowns. IME handling, Enter, and save on blur are unchanged.

Scope

One bug: a Settings field that traps Esc. One condition in TypographySettings.tsx and one test in TypographySettings.browser.test.tsx. No issue: a small fix to an obvious bug with the direct repro below.

Verification

An AI agent ran each check below.

Setup: Linux, Chromium (T3 Browser panel, incognito), 1280×800, isolated vp run dev --no-seed server, installed-font access not granted; main ran on aaadc0cb, this PR's app run used 4a59e90e (same TypographySettings.tsx as PR head 587a6e7f; only the test changed since); fresh server, onboarding finished with nothing imported, so closing Settings returns to the empty chat view.

Steps: open Settings → Appearance, focus Interface font, type Georg, press Esc (discards the draft), then press Esc again.

aaadc0cb (main) 4a59e90e (this PR)
aaadc0cb: first Esc discarded "Georg"; second Esc left Settings open. 4a59e90e: first Esc discarded "Georg"; second Esc closed Settings back to the chat view.
First Esc discarded "Georg"; second Esc left Settings open. First Esc discarded "Georg"; second Esc closed Settings back to the chat view.
  • Esc on an untouched Interface font field leaves Settings open on aaadc0cb and closes it on 4a59e90e.
  • On 4a59e90e, after discarding Georg in Interface font, a dispatched repeat: true Esc leaves Settings open because AppRouteModal ignores repeats.
  • New browser test only intercepts Escape when discarding a draft checks both defaultPrevented and whether the keydown reaches document (what Settings' dismissal reads):
    • Esc on an untouched field: not prevented, reaches document.
    • a on a typed draft: not prevented, reaches document, draft kept (a handler without the Escape check fails here).
    • Esc on that draft: prevented, stops before document, field reverts to the saved value.
    • The next Esc: not prevented, reaches document.
  • The test fails on aaadc0cb at its first assertion and passes 3 of 3 runs on 587a6e7f, together with the file's other 2 tests (IME Escape included).
  • vp run check:changed passes on 587a6e7f.

Not checked:

  • Desktop renders this same web Settings panel and was not checked separately.
  • Mobile has no font family field.
  • The installed-font picker (FontFamilyPicker, used once font access is granted) is untouched.

Generated with Gemini 4 Neon in T3 Code Nightly

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@only21mil
fix(web): Esc in a font family field closes Settings when no edit is …
587a6e7
…pending
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Escape now cancels the font family draft only when it differs from the current value. Browser coverage checks Escape propagation and draft reset behavior.

Changes: Font family Escape handling

Layer / File(s) Summary
Conditional draft cancellation
apps/web/src/components/settings/TypographySettings.tsx, apps/web/src/components/settings/TypographySettings.browser.test.tsx
Escape cancels and resets a changed draft. When no draft exists, Escape propagates without being prevented. The browser test checks event propagation and input values.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: heki1224

Merge Risk: Minimal · up to 846fa

Escape in a font family field now closes Settings when there is no pending edit, and still discards a pending draft. The change is small and covered by a browser test, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Escape in a font family field no longer keeps Settings open when no edit is pending. It matches the one-condition change in FontFamilySettingsRow and the new browser t…
Description check Passed The description follows the template. It states the problem with reproduction steps, explains the change and why it is safe, gives scope and a no-issue justification for a small obvious bug, and gives…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Escape in a font family field no longer keeps Settings open when no edit is pending. It matches the one-condition change in FontFamilySettingsRow and the new browser test. It uses the conventional commit form the template asks for.

Full details: Description check

Explanation

The description follows the template. It states the problem with reproduction steps, explains the change and why it is safe, gives scope and a no-issue justification for a small obvious bug, and gives detailed verification with before/after evidence. It also names the AI agent and model, as the template asks. Remaining gaps are minor: the Change section does not explain cross-component scope (none exists), and the screenshots are linked as gists rather than embedded directly, which the template allows.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: cad8cd0
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d1bdd91-13dc-4d81-b46f-d32ced16c07e
Commits

Reviewing files that changed from the base of the PR and between 587a6e7 and 846fa21.

Files selected for processing: 1

  • apps/web/src/components/settings/TypographySettings.browser.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
juliusmarminge and others added 2 commits November 24, 2026 19:32
@juliusmarminge @claude
Merge remote-tracking branch 'origin/main' into fix/web-typography-cl…
3fa1228
…ean-escape

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(web): narrow font family Escape regression test to Escape
846fa21
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 24, 2026

Copy link
Copy Markdown
Member

Evidence

Real web app in Chromium, 1280×800, light appearance, fresh isolated databases with synthetic Replay (dev) project/thread data.

Steps on both commits: body-focus Escape control; focus each unchanged font family field and press Escape; reopen, replace its contents with Georg, immediately press Escape to discard, then press Escape twice more. Both Interface and Monospace fields were exercised. Captures wait for UI animations.

Proven: base retains Settings on clean-field Escape and subsequent Escape presses; head closes Settings. Draft discard keeps Settings open on both.

Interaction Before — cad8cd0937 After — 846fa2147e
Interface unchanged Escape Before: Settings stays open After: Settings closes
Interface draft discarded Before: draft discarded, Settings open After: draft discarded, Settings open
Interface second Escape Before: Settings stays open After: Settings closes
Monospace unchanged Escape Before: Settings stays open After: Settings closes
Monospace draft discarded Before: draft discarded, Settings open After: draft discarded, Settings open
Monospace second Escape Before: Settings stays open After: Settings closes
Full interaction Before recording After recording

Scenario source · Full runner evidence including control and third presses

Not shown:

  • Desktop Electron shell was not exercised; this proof covers the web client.
  • IME composition behavior was not exercised.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit c39c21f into pingdotgg:main Nov 24, 2026
47 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 24, 2026
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 25, 2026
@github-actions
nightly: 0.1.12-nightly.20261124.5209
3f2f819
**v0.1.12-nightly.20261124.5209** · 23 changes from 11 contributors

- **T3 Connect sign-in alerts.** Get notified when a new T3 Connect device signs in.
- **Antigravity quota recovery.** Threads can resume or snooze automatically when Antigravity reports a quota reset time in its error message.
- **Theme editor changes.** Canceling an input method candidate with Escape no longer closes the editor and discards unsaved changes.

### Plus 19 more bug fixes.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(web): Voice Models language menu resets its search filter on close by @only21mil in pingdotgg/t3code#42321
* feat(connect): tell people when a new T3 Connect device signs in by @juliusmarminge in pingdotgg/t3code#42311
* fix(web): new-commits banner on a PR spans the full header width by @juliusmarminge in pingdotgg/t3code#42342
* fix(web): opening a resolved PR comment keeps its toggle under the cursor by @ipanasenko in pingdotgg/t3code#42312
* fix(web): large SVG project icons come back after their link expires by @smirea in pingdotgg/t3code#42329
* fix(server): Antigravity quota failures keep the 'Resets in' reset time by @juliusmarminge in pingdotgg/t3code#42339
* fix(server): file listing keeps gitignore status when a filename looks like a git pathspec by @only21mil in pingdotgg/t3code#42333
* fix(bitbucket): checkouts cloned from ssh.bitbucket.org match their pull requests by @adrhumphreys-atlas in pingdotgg/t3code#42330
* fix(client): a tab-indented fence line in a PR description code block no longer swaps which video plays by @Marve10s in pingdotgg/t3code#42331
* fix(web): script command field shows both hyphens with ligature fonts by @Mnigos in pingdotgg/t3code#42352
* fix(server): honor sort: "created" when merging IssueService.list entries by @AymanKhan9 in pingdotgg/t3code#42350
* fix(server): a terminal commit refreshes cached Changes totals by @juliusmarminge in pingdotgg/t3code#42365
* fix(web): an IME Escape no longer closes the theme editor or ends inspection by @omaribrahim6 in pingdotgg/t3code#42332
* fix(web): Esc in a font family field closes Settings when no edit is pending by @only21mil in pingdotgg/t3code#42361
* fix(relay): traces no longer record callers' IP addresses or user agents by @juliusmarminge in pingdotgg/t3code#42380
* fix(server): source control discovery no longer runs the auth command of a CLI that is not installed by @juliusmarminge in pingdotgg/t3code#42379
* fix(web): sidebar issue and pull request badges share one component by @Bil0000 in pingdotgg/t3code#42275
* feat(relay): delete a user's relay data when Clerk deletes the user by @juliusmarminge in pingdotgg/t3code#42285
* fix(web): Esc in Theme Editor color filter clears the filter without closing the editor by @juliusmarminge in pingdotgg/t3code#42395
* fix(mobile): analytics uses its own random device id by @juliusmarminge in pingdotgg/t3code#42394
* fix(desktop): Windows desktop applies the saved user telemetry opt-out by @juliusmarminge in pingdotgg/t3code#42376
* fix(web): Enter commits Background Activity interval values by @only21mil in pingdotgg/t3code#42392
* fix(server): analytics no longer reads or sends Codex and Claude account IDs by @gabrielelpidio in pingdotgg/t3code#42299

## New Contributors
* @adrhumphreys-atlas made their first contribution in pingdotgg/t3code#42330

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261124.5204...v0.1.12-nightly.20261124.5209

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261124.5209
@patroza patroza mentioned this pull request Nov 25, 2026
Merge upstream main through feecca53e4dc patroza/t3code#675
Merged
@albert-zen albert-zen mentioned this pull request Nov 25, 2026
ZenX: curated desktop UI and right workspace navigation albert-zen/zen#759
Draft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@only21mil @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.