Repository navigation
Conversation
Since apache#6684 a conversation a person creates takes its access from the default sandbox, which writes the workspace. The test's parent therefore already permitted the write its child asked for, answered it without a person, and Approve child decision never appeared. Make the parent read-only before it delegates, through the same permissions update a person makes, so the child again asks for access its parent lacks. Fixes apache#6693 Generated-by: Claude Code
Astro-Han
left a comment
There was a problem hiding this comment.
I reviewed the complete one-file change at b5bf9351133570452edc3771d4a0067b6c16f7a6 and the surrounding parent/child permission journey. It explicitly changes the newly created parent to read-only through the normal metadata operation, checks that operation committed, and then exercises the existing child approval flow. This restores the test's missing premise after new conversations began using the default sandbox. I found no confirmed P0–P2 issue in this test-only change.
I checked the hosted execution rather than relying only on the reported local result. In CI 42383527416, job 128438361065 checks out 50402d5, merging this head into 0a5ce771a, and the complete parent/child journey passes in 20.666 seconds; all six tests in that job pass. Earlier baseline runs fail while waiting for Approve child decision. This is evidence for the corrected fixture; it does not establish that every previous desktop failure had the same cause.
The full CI run still fails: the default-sandbox settings journey reads workspace-write where it expects danger-full-access, and the new-draft completion journey cannot find Close settings. I read both failing logs and have not established their cause. This PR changes only the parent fixture in a different test. I did not run the native desktop or Windows suites locally, and I have not approved or merged this PR.
Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.
|
Thanks for tracking down the root cause after #6684 and putting together this fix, @YongGoose! Since this PR was opened, the underlying fixture disconnect has already been resolved at the root cause on
Closing this PR (and #6693) as superseded/resolved on |
Summary
desktop_parent_reviews_child_access_and_opens_attributed_sender_besidehas failed on everyrust-previewpush since #6684. The error isno single control labelled Approve child decision.#6684 made a conversation a person creates take its access from the default sandbox, which is workspace write. The test's parent therefore already permitted the child's request to write
workspace/report.md. ItsSessionRespondwas recorded without a person, and the confirmation the test waits for never appeared. The product behaves as #6684 intends, and #6684 updated the matching unit test the same way.This makes the parent conversation read-only before it delegates. It uses the
metadatapermissions update a person makes when changing a conversation's sandbox, so the child again asks for access its parent lacks. The rest of the test is unchanged.Fixes #6693
Verification
On macOS 27.0.1 (arm64) at
0a5ce771a:cargo nextest run -p maka-cli --no-default-features --features desktop-tests --test integration -E 'test(terminal::desktop_new_session)', the CI desktop recipe: 21 passed.node scripts/ci.mjs check formatpasses.I ruled out a smaller change: moving the requested path outside the workspace doesn't help, because the fixture lives under the temporary directory, which workspace write already permits. Temporary logging (not committed) showed that both conversations were
workspace_writeand that the parent's tool result wasrecorded.Not run: the full
just checkand the Windows suites.AI use
Select exactly one:
Tool(s) and scope: Claude Code traced the CI failure to #6684, confirmed the cause with temporary logging, wrote the test change and ran the checks above. The commit carries
Generated-by: Claude Code.Checklist
Does this PR entail a change in behavior?