Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thank you @hishikit, this was a great catch and a really clear write-up. Seeing a chat's servers before the first message is exactly what we wanted, and your Windows walkthrough made the gap easy to see. We've landed it in #50908, built on Orca's own MCP server resolver so Claude, Codex and the other chat agents all list their servers before the first message, on desktop and phone. Your renderer fix (waiting for the host to create the chat before the tray asks) is in there as is, and the PR credits you. Closing this one in favour of #50908. Thanks again for digging into it! |
ELI5
Open
/mcpin a new Claude Chat and you can see which servers the project declares before you send a message. Each name starts with a “Not started” label. Once Claude connects, the panel shows what Claude reports for that session.What Changed
When Claude has no active connection and the panel requests its status, the session host looks for a regular
.mcp.jsonfile in the chat's launch directory. It uses the existing bounded config reader and inspector and returns valid server names as project rows. Authentication, reconnect and toggle controls are available only when the live provider advertises them. If there are no usable declarations, the panel keeps its existing first-message hint.On desktop, choosing
/mcpwhile the host is still creating the chat records the open request and displays the panel as soon as the existing session-ready signal arrives. Previously the panel could ask for the list before the host had a record for that chat, then keep showing an “Update Orca” hint until the user opened it again.Why
Seeing a name answers a question the user can ask before a conversation exists: did Orca find my project server? Starting a Claude turn to answer that question would also start the session. The Codex provider already surfaces configured servers before a turn in #44673.
Linked Issue
Partially addresses #46441, item 1. This implements discovery of project server names before the first message in Claude Chat. Pre-send connection checks and the mode picker remain open.
Visual Proof
The top capture is the current Windows release (1.4.277), opened on the same project in a fresh chat after selecting
/mcp. Its hint says that servers connect when you send the next message. The middle and bottom captures show the patched Windows build, before and after its first message. The panel stayed open. All captures are at 1:1 scale.Testing
Windows 11, using a local test repository with one stdio server named
orca-probeand a single tool namedping./mcpbefore sending anything.orca-probewith status Not started. The message history is empty.The first selection worked in three fresh chats, including the first chat after a cold start. In one of them, Claude replied
OK. The same open panel went fromProject / orca-probe / Not startedwith zero messages toProject / orca-probe / 1 toolwith two messages and one connected server. Claude discovered the fixture from the project's own.mcp.json.Twelve focused host checks passed on the submitted source. Ten covered the idle path, including missing or malformed config, multiple names, exclusion of config values from the response, and read-only behavior. Two used a stub provider to check that live inventory replaces the preview even when that inventory is empty. The existing panel and parser are reused, so the Windows interaction was exercised through the real app rather than adding a component test.
All 40 checks selected by Orca's
check:changedpassed on Windows against basebb6f08b9de17, including 7 affected unit tests across 4 files and all 4 selected TypeScript projects.Performance
A status request with no active Claude connection can read one file, capped at 256 KiB. The inspector also limits the number of declarations to 256. The preview uses no polling, provider process or network request. The existing live status path handles running sessions.
Risk
Low. A declaration may be visible before Claude applies the user's approval or managed policy. The preview labels it “Not started” and offers no connection controls. Missing, invalid, oversized and symlinked files fall back to the existing hint. The change only reads project settings and can be reverted in one commit.
AI Disclosure
OpenAI Codex (GPT-6 family) helped reproduce the issue on Windows, implement and review the patch, run checks and prepare this description. Claude Code was the provider under test. Claude Code (Claude Opus 5.5) applied the patch on a second Windows machine, confirmed the identical Git tree and a clean merge with the current
main, and opened this pull request.Review
The host-side change is specific to Claude. The desktop panel also observes the shared session-ready signal for all providers. The existing desktop and mobile row format carries the name, source and status. Connection details, commands, URLs and environment variables stay out of the preview response. The host resolves its own workspace using the existing execution-location guard and platform path library. Windows desktop was exercised directly. macOS, Linux, mobile and SSH were reviewed in code only.
Agent skill upstream boundary
Notes
The preview covers the project file directly in the chat's launch directory. The live session supplies the effective inventory, including user-level and managed servers.
Checklist