Uh oh!
There was an error while loading. Please reload this page.
fix(web): prevent loading ssh environments from overriding navigation - #9168
Merged
juliusmarminge merged 1 commit intoSep 3, 2026
Merged
Conversation
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The PR makes a focused fix to cancel delayed draft creation when the user navigates away, preventing the asynchronous SSH environment lookup from pulling the UI back to a draft. It adds targeted coverage for fresh and reusable drafts without changing schemas, defaults, deployment, or sensitive code. You can add or adjust custom eligibility rules. Learn more. |
Uh oh!
There was an error while loading. Please reload this page.
github-actionsBot
added a commit
to omarcresp/t3code-flake
that referenced
this pull request
Sep 3, 2026
## What's Changed * fix(web): send cited messages with Cmd+Enter by @extoci in pingdotgg/t3code#9307 * fix(web): preserve explicit preview navigation URLs by @nateEc in pingdotgg/t3code#8902 * fix(web): prevent loading ssh environments from overriding navigation by @flamboh in pingdotgg/t3code#9168 * fix(mobile): skip unsupported shared settings targets by @Lucenx9 in pingdotgg/t3code#9381 * fix(web): avoid duplicate Antigravity install status by @RakshithBhat03 in pingdotgg/t3code#9419 * fix(composer): mute fast icon when collapsed by @maria-rcks in pingdotgg/t3code#9451 * fix(web): unify skeleton loading animations on one pulse by @maria-rcks in pingdotgg/t3code#9448 * fix(web): prioritize authored pull requests by @maria-rcks in pingdotgg/t3code#9453 * fix(web): make project icons the default by @maria-rcks in pingdotgg/t3code#9457 * fix(server): reuse pr state when settling threads by @maria-rcks in pingdotgg/t3code#9459 * fix(web): keep agent images collapsed by @maria-rcks in pingdotgg/t3code#9460 * fix(web): banner buttons no longer expand the resting composer by @juliusmarminge in pingdotgg/t3code#9452 * fix(web): stop clipping the traits chevron on long Codex effort labels by @zortos293 in pingdotgg/t3code#9433 **Full Changelog**: pingdotgg/t3code@v0.0.39-nightly.20260903.1270...v0.0.39-nightly.20260903.1272 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.39-nightly.20260903.1272
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Basically, the navigation jumps around once the remote environment lazily loads. This fixes it!
Note
🤖 GPT-5.6 Sol on behalf of Oliver
Problem
Starting a new draft can pause before navigation finishes. For SSH projects, resolving the draft's default environment mode can wait on the remote
t3.jsonread.If the user navigates to another page or thread during that wait, the delayed draft handler still redirects them when the read finishes.
Fix
Capture the route when a new-thread request starts. After a delayed project-default read finishes, stop the request if the user has navigated elsewhere.
The regression test covers both a new draft and a reusable empty draft while the user navigates elsewhere.
UI changes
Before
Cap.2026-09-01.at.22.01.32.mp4
After
Cap.2026-09-01.at.21.47.43.mp4
Verification
vp test run apps/web/src/hooks/useHandleNewThread.test.ts, 2 tests passedvp lint apps/web/src/hooks/useHandleNewThread.ts apps/web/src/hooks/useHandleNewThread.test.ts --report-unused-disable-directivesvp fmt --check apps/web/src/hooks/useHandleNewThread.ts apps/web/src/hooks/useHandleNewThread.test.tsvp run --filter @t3tools/web typecheckgit diff --check origin/main...HEADChanges prepared by GPT-5.6 Sol through Codex in T3 Code.
Note
Fix
useNewThreadHandlerto abort on navigation during async default readMacroscope summarized 6c6d881.