@devries-cameron20 / t3code Mirror · read-only / commits / 2ec59ca1fa
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 02:45 UTC

fix(web): hide back button for single linked pull requests (#11520)

maria committed Sep 13, 2026 at 02:44 UTC 2ec59ca1fad6d9eb6ae36714b76b6130e63201e6
1 file changed +5 -4
apps/web/src/components/ChatView.tsx
+5 -4
@@ -4228,10 +4228,11 @@ export default function ChatView(props: ChatViewProps) {
4228 }, [activeThreadRef]);
4229 const supportsThreadPullRequests =
4230 serverConfig?.environment.capabilities.threadPullRequests === true;
4231 + const visiblePullRequestCount = visibleThreadPullRequests(
4232 + (activeThreadShell ?? activeThread)?.pullRequests ?? [],
4233 + ).length;
4234 const pullRequestsSurfaceAvailable =
4232 - isServerThread &&
4233 - supportsThreadPullRequests &&
4234 - visibleThreadPullRequests((activeThreadShell ?? activeThread)?.pullRequests ?? []).length > 0;
4235 + isServerThread && supportsThreadPullRequests && visiblePullRequestCount > 0;
4236 const addPullRequestsSurface = useCallback(() => {
4237 if (!activeThreadRef || !pullRequestsSurfaceAvailable) return;
4238 useRightPanelStore.getState().open(activeThreadRef, "pull-requests");
@@ -8544,7 +8545,7 @@ export default function ChatView(props: ChatViewProps) {
8545 }
8546 composerDraftTarget={composerDraftTarget}
8547 onBack={
8547 - activeThreadRef !== null && pullRequestsSurfaceAvailable
8548 + activeThreadRef !== null && pullRequestsSurfaceAvailable && visiblePullRequestCount > 1
8549 ? addPullRequestsSurface
8550 : undefined
8551 }