Repository navigation
base red: a no-folder first Cloud send starts in a fresh ~/chats folder (CloudAgentChatTests, after #31186) - #33096
Conversation
… starts in a fresh ~/chats folder there aFirstSendWithNoFolderStartsInTheWorkspacesFolderOnTheMachine failed at CloudAgentChatTests.swift:92/94: the first send came back with a session, not agent_session.untrusted_folder. #31186 (796b77a) changed the product on purpose (Leo: a no-project Cloud chat starts at once in its own fresh chat): on a Cloud owner link the app sends no folder (AgentTabs+RemoteStart.swift:68), and the machine's daemon makes ~/chats/<chat> there (acpmux remote_guard cloud_chat_folder), which needs no trust question. #31186 updated the unit test (AgentTabRemoteStartTests.aModernCloudDaemonReceivesNoFolderForRustToChoose) but not this live two-daemon test, which still asked for the old workspace-folder start. The test now states the new contract end to end, with real daemons: the first send starts the chat with no error; the session runs in the machine's acpmux; its folder, as 'cmux acp --json ls' lists it, is under the machine's HOME/chats/, exists, and is not the workspace's folder; the machine's store binds the session to the tab. The explicit-folder trust path stays covered by aNewChatInACloudWorkspaceRunsItsAgentOnTheMachine. Culprit: 796b77a (#31186). Red: fleet job 2bf90b6c18ca136f3fb6c15d at feat 11dfe91.
|
Found 6 test failures on Blacksmith runners: Failures
|
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on 6b31a88 to compare; do not merge until green; see lane-rules Shipped in:
|
|
Review (independent review subagent, Opus 5.5 claude-opus-5-5, read-only): SHIP at d5fb139
Nit: "fresh" is checked only as "under |
|
Correction to my review receipt above: the lanes were red overall because of the test-bundle run-loop guard, which held the main thread in xctest. It was not the macOS AddressBook store; that was only a symptom. #33023 and #33013 fixed it on feat (ecfbb44). This head is older than that fix, so its lane still shows the XCTest stage red. The suite's own result (passes at this head, fails at the tip) is unchanged. No action is needed on this PR. |
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Base red on feat-cmux-next:
CmuxNextAppTests.CloudAgentChatTests.aFirstSendWithNoFolderStartsInTheWorkspacesFolderOnTheMachinefails at CloudAgentChatTests.swift:92/94: the first send returns a session, notagent_session.untrusted_folder.Cause: #31186 (796b77a) changed the product on purpose (Leo: a no-project Cloud chat starts at once in its own fresh chat). On a Cloud owner link the app sends no folder (AgentTabs+RemoteStart.swift:68), and the machine's daemon makes
~/chats/<chat>there, which needs no trust question. #31186 updated the unit test (AgentTabRemoteStartTests.aModernCloudDaemonReceivesNoFolderForRustToChoose) but not this live two-daemon test, which still asked for the old workspace-folder start.Fix: the test (renamed
aFirstSendWithNoFolderStartsInAFreshChatFolderOnTheMachine) states the new contract end to end with real daemons: the first send starts the chat with no error; the session runs in the machine's acpmux; its folder, ascmux acp --json lslists it, is under the machine'sHOME/chats/, exists, and is not the workspace's folder; the machine's store binds the session to the tab. The explicit-folder trust path stays covered byaNewChatInACloudWorkspaceRunsItsAgentOnTheMachine.Owner: no OWNERS.md row covers the Cloud agent start; #31186 is teamleaderleo's.
Testing
Command:
cmux-ci run --class light --display --script scripts/ci/package-test-lane.sh --ref SHA --arg=suite --arg=Packages/macOS/CmuxNext --arg=CmuxNextAppTests.CloudAgentChatTests(5 runs in one step).Each job's lane summary is red for a reason outside this change: on these hosts the target's XCTest pass aborts (signal 6, after Contacts/AddressBook CoreData store errors) or hangs ~680-900 s with no test in flight, after the Swift Testing pass. The Swift Testing results below are the suite's own.
Observed / Not run
Observed: the fleet runs above.
python3 scripts/cmux-next/prepush-gate.pypasses.Not run: no app build; test-only change.
Changelog
none