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 22, 23:15 UTC
fix(web): open the startup composer without waiting for every environment (#20183)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Shantanu Wable committed
Oct 20, 2026 at 09:53 UTC
3c63b50b87d853c8bf49d8a66d6c7b600962ac73
1 file changed
+4
-8
apps/web/src/routes/_chat.index.tsx
+4
-8
@@ -41,13 +41,11 @@ function IndexDraftLanding() {
41
// Read at effect time: this page stays mounted while a navigation away from
42
// "/" is still loading, but the router already points at the new location.
43
const isStillOnIndex = useEffectEvent(() => router.state.location.pathname === "/");
44
- // One start per attempt; a retry request opens the next attempt.
44
const startedAttemptRef = useRef<number | null>(null);
45
const [startState, setStartState] = useState({ failed: false, retryRequest: 0 });
46
48
- const mostRecentProject = bootstrapped
49
- ? (sortScopedProjectsForSidebar(projects, threads, "updated_at")[0] ?? null)
50
- : null;
47
+ const mostRecentProject =
48
+ sortScopedProjectsForSidebar(projects, threads, "updated_at")[0] ?? null;
49
const attempt = startState.retryRequest;
50
51
useEffect(() => {
@@ -71,9 +69,6 @@ function IndexDraftLanding() {
69
});
70
}, [attempt, handleNewThread, mostRecentProject]);
71
74
- if (!bootstrapped) {
75
- return null;
76
- }
72
if (mostRecentProject !== null) {
73
return startState.failed ? (
74
<DraftStartError
@@ -86,7 +81,8 @@ function IndexDraftLanding() {
81
/>
82
) : null;
83
}
89
- return <NoProjectsHero />;
84
+ // A pending environment cannot prove the workspace is empty.
85
+ return bootstrapped ? <NoProjectsHero /> : null;
86
}
87
88
function DraftStartError({ onRetry }: { readonly onRetry: () => void }) {