Repository navigation
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
React Doctor found 2 issues in 1 file · 2 warnings. 2 warnings
Reviewed by React Doctor for commit |
🤖 CI report✅ Trunk lane — non-backend lane (
|
| File | Comment lines | Added lines |
|---|---|---|
products/desktop/packages/core/src/sessions/sessionService.ts |
10 | 26 |
products/desktop/packages/core/src/sessions/sessionViewState.ts |
10 | 28 |
products/desktop/packages/ui/src/features/sessions/components/SessionView.tsx |
3 | 27 |
products/desktop/packages/core/src/sessions/sessionServiceCompaction.test.ts |
2 | 53 |
This check does not block merging. It updates on every push and clears when the share drops.
HostHog preview —
|
|
React Doctor's two warnings — both left as-is:
🦉 via talyn.dev |
b6262c8 to
5850b7c
Compare
|
Rebased onto master to clear the conflict in React Doctor re-ran and reports the same two warnings at shifted line numbers ( 🦉 via talyn.dev |
5850b7c to
728cf9a
Compare
|
Rebased onto master to clear a conflict in
The PR's file set is unchanged by the rebase. React Doctor re-ran and reports the same two warnings at shifted lines ( 🦉 via talyn.dev |
728cf9a to
70d3dff
Compare
|
Rebased onto master to clear a conflict in
The PR's file set is unchanged by the rebase. Two unrelated flakes on the way there, one per run, both
Neither test is this PR's. Both are fully synchronous — mocked Raising the timeout or shrinking the pool would be a change to the desktop test job's vitest config, which is repo-wide and would land on every open PR's CI; this PR touches no test config and no file under On the comment-density alert: leaving the comments as they are. The 🦉 via talyn.dev |
615f63b to
1ba1287
Compare
|
Rebased onto master to clear a conflict in
The PR's file set is unchanged by the rebase (same 11 files), and React Doctor re-ran on the new head and reports the same two warnings at shifted lines ( 🦉 via talyn.dev |
Switching to a task no longer shows a full-panel "Connecting to agent" spinner. The thread and composer render immediately, with a small inline connecting indicator above the composer. The user can type and queue one prompt while the agent connects; it sends automatically once connected, and the composer blocks after one prompt is queued. Generated-By: PostHog Desktop Task-Id: c2b5df69-5229-4f4a-a011-fbf465fa7c4e
1ba1287 to
5a0d646
Compare
|
Rebased onto master to clear a conflict in
Typecheck passes for 🦉 via talyn.dev |
|
React Doctor re-ran on the rebased head and reports the same two warnings at shifted lines. Both still stand as previously noted:
Neither failed its check. All 77 checks pass on 🦉 via talyn.dev |
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the |
Problem
Opening a task that is still connecting shows a full-panel "Connecting to agent" spinner, so you cannot read the thread or start typing until the agent is ready. Cloud tasks show the same kind of full-panel wait while the sandbox provisions.
Changes
deriveSessionViewStategains anisConnectingflag and narrowsisInitializingto only the "no session yet" (and cloud transcript-hydrating) cases;SessionViewuses these to gate the composer and the indicator. Mechanical: the touched composer markup moved from RadixBoxtodiv, and the new indicator uses@posthog/quill.No screenshot: the app could not be launched in this environment (a native dependency build and registry access both failed), so no before/after image was captured.
How did you test this code?
Automated tests added and run locally from the
packages/coreandpackages/uiworkspaces:sessionViewState.test.ts— cases forisConnectingand the narrowedisInitializingacross local connecting (with and without a painted tail), cloud provisioning, connected, terminal, and no-session. Catches a regression that re-shows the full-panel spinner while a session exists.sessionServiceCompaction.test.ts—sendPromptwhile connecting queues instead of throwing; a second submit keeps the queue at one; an errored session still throws; a failed connect preserves the queued prompt. Catches loss of the queue-while-connecting behavior, the single-prompt guard, and prompt loss on connect failure.sessionServiceHost.test.ts— updated the existing "throws when connecting" case to assert the new queue behavior.Not verified: the connecting-to-connected drain path end to end (needs the running app), and any manual UI check. CI reports suite pass counts.
Automatic notifications
Docs update
None.
🤖 Agent context
Autonomy: Human-driven (agent-assisted) — directed by @frankh.
Authored with Claude (PostHog Desktop). Skills invoked:
/writing-tests(test value gate) and/writing-pr-descriptions(this body). Component choice and Radix rules for the desktop package were followed fromproducts/desktop/AGENTS.md.Design decisions across the session: the drain-on-connect hook attaches to the single local
connecting → connectedtransition and reuses the existingflushQueuedMessagesIfIdlehelper rather than adding a new drain path; cloud reuses its existing queue-and-drain triggers and only gained a single-prompt guard. The full reconnect-path drain was left to manual verification rather than a heavy, brittle unit test.Created with PostHog Desktop