nightly: static capability check skips agent-session-folders-v1 (added at runtime), unblocking every tip nightly
Leo: "we just need the nightlies bro"
Cause
#29145 added agent-session-folders-v1 to the app's capability list (plans/cmux-next/daemon-capabilities.json). cmux-tui advertises it only from identify_capabilities, inside if mux.serves_agent_session_start() with the other agent-session-start capabilities, so __daemon-capabilities (the bundled static manifest) never lists it. check-daemon-capabilities.sh --static-only skips those through its hand-kept runtime_only set, which lacked the new one. Every nightly build of a commit after #29145 fails in build-nightly-app:
check-daemon-capabilities: the bundled static capability manifest is missing agent-session-folders-v1
so no tip has reached the NEXT feed since; only re-runs of runs for commits before #29145 publish.
Change
agent-session-folders-v1joinsruntime_only.tests/test_cmux_next_static_capability_runtime_only.pyreadsidentify_capabilitiesin cmux-tui-core'sserver/capabilities.rs, resolves each capability it pushes to its string, and fails when one is on the app's list but not inruntime_only. Red without the script change (['agent-session-folders-v1'] != []), green with it. Registered in tests/test-execution.toml (linux-guard) and run in ci-guards' nightly step.
Risk: low. The runtime check of these capabilities stays in the daemon integration lane, as for the other agent-session-start ones.
Agent session: agent session
š¤ Generated with Claude Code
![View with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3-3x.png)
![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes nightly builds failing because the static capability check didn't know agent-session-folders-v1 is only added at runtime.
- Adds
agent-session-folders-v1toruntime_onlyincheck-daemon-capabilities.shso the static manifest check no longer reports it as missing. - Adds a test that parses
identify_capabilitiesincmux-tui-coreand fails when a runtime-added capability on the app's capability list isn't inruntime_only, and registers it intest-execution.tomland the ci-guards nightly step.