Repository navigation
Description
What happened
Since #6684 (b2e73dc0a), rust-preview CI has failed desktop-tests (cli) on every push. The failing test is:
terminal::desktop_new_session::desktop_parent_reviews_child_access_and_opens_attributed_sender_beside
It fails with this error:
no single control labelled Approve child decision; observed: Null
#6684 gave new conversations a default sandbox: a root conversation created by a person now takes its access from chat_defaults.sandbox_mode, which is WorkspaceWrite by default (plugins/agent/native/src/owner.rs, create_inner). The test's parent conversation therefore writes its workspace, and the child it creates inherits that access.
The test has the child ask to write workspace/report.md and the parent's model answer it with SessionRespond. Before #6684 the parent was read-only, so may_approve refused the write and asked the parent's person to confirm it, which shows Approve child decision. Now the parent's sandbox already permits the write. SessionRespond records the answer at once, and the confirmation never appears.
I confirmed this locally with temporary logging:
- Both conversations are
{"access":"workspace_write","requestPermissions":true}. - The parent's tool result is
{"kind":"recorded",...}.
The product behavior matches #6684's intent; it updated model_child_inherits_caller_policy_not_workspace_session_or_installation for the same reason. Only this desktop test still assumes a read-only parent.
How to reproduce
cargo nextest run -p maka-cli --no-default-features --features desktop-tests --test integration \
-E 'test(terminal::desktop_new_session::desktop_parent_reviews_child_access_and_opens_attributed_sender_beside)'It fails after about 65 s on 0a5ce771a (current rust-preview).
CI runs:
- 42335176677:
4e4ecc2e5, succeeded. - 42336175602:
b2e73dc0a(fix: restore draft slash commands and sandbox defaults #6684), the first failing push. - 42379933771:
bd8b65a75, still failing.
Environment
- Maka version or commit:
rust-preview0a5ce771a - OS and version: macOS 27.0.1 (arm64) locally; the same test fails in CI on Linux
- Surface: desktop workbench (
maka-clidesktop integration tests) - Node.js version, if running from source: 26.10.0
Logs, screenshots, or additional context
Proposed fix: make the test's parent conversation read-only before it delegates. It would use the same metadata permissions update a person makes, so the child again asks for access its parent lacks. I have this change and will open a PR.
Moving the requested path outside the workspace does not work: the fixture lives under the temporary directory, which workspace-write already permits.
The real-host fixture still sets the installation policy's agent.permissions.access to read_only. Since #6684 that value no longer reaches root conversations a person creates, because their access comes from the default sandbox. This issue only covers the failing test.
Activity
YongGoose commentedon Nov 7, 2026
take
M4n5ter commentedon Nov 9, 2026
Resolved on
rust-preview:57470e4c1) updatedFixture::open_with_configuration/configure()inproducts/maka/terminal-shell/tests/real_host/support.rsto propagateconfiguration["agent"]["permissions"]["access"]("read_only"by default) intoChatDefaults { sandbox_mode }.9864d52160) added an explicitassert_eq!(observed["session"]["permissions"]["access"], "read_only", ...)guard indesktop_parent_reviews_child_access_and_opens_attributed_sender_beside.terminal::desktop_new_session::desktop_parent_reviews_child_access_and_opens_attributed_sender_besidepasses onrust-previewCI (native-macosandnative-windows, 22/22).Closing as completed (see also #6694).