Repository navigation
fix(agents): make requested threads sidebar-visible - #118073
fuller-stack-dev merged 7 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 4:12 PM ET / 20:12 UTC. ClawSweeper reviewWhat this changesThe branch lets restricted subagents create persistent sidebar-visible dashboard threads by transferring the parent’s effective tool-policy ceiling through Gateway session creation and persisted session lineage. Merge readinessThis PR is still necessary: current main intentionally rejects restricted visible spawns, while the branch replaces that denial with a signed, persisted policy-propagation path. The implementation appears coherent and preserves the parent-policy ceiling, but it changes a documented security boundary and should remain open for explicit security-owner approval and exact-head CI completion. Priority: P1 Review scores
Verification
How this fits togetherThe agent flowchart LR
A[Restricted requester session] --> B[Visible thread request]
B --> C[Signed parent authority]
C --> D[Gateway session creation]
D --> E[Persisted child lineage and policy]
E --> F[Requester policy resolution]
F --> G[Sidebar-visible restricted thread]
Decision needed
Why: Current main deliberately documents and enforces denial of this case; deciding whether signed propagation is an acceptable replacement for that security boundary requires maintainer intent, not mechanical review judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +243, Tests +405, Docs 0. Total +648 across 27 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical visible-session creation path, but land it only after a security owner explicitly approves signed propagation of the parent ceiling and exact-head CI confirms the persisted-policy lifecycle remains fail-closed. Do we have a high-confidence way to reproduce the issue? Yes, by source: on current main, invoke Is this the best way to solve the issue? Yes, conditionally: persisting a signed parent-derived envelope at the Gateway creation owner is safer than bypassing the visible-spawn check downstream. The remaining question is whether maintainers want this capability to replace the documented fail-closed policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d9c9ad8d8a09. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (#118193) fix(config): preserve secret ownership when configuration rows move (#118149) fix(cron): deliver failure alerts after persistence (#118200) chore(lint): clear 172 lint:all baseline violations in five batches (#118098) perf(gateway): remove streaming hot-path rescans (#118192) test(gateway): use in-memory task registry (#118191) test(macos): fix three races in the bounded process suites (#118196) refactor(migrate-hermes): consolidate test fixtures (#118182) test(android): share Wear transport fixtures (#118177) test(ui): deduplicate control UI e2e setup (#118180) fix(plugins): unblock prerelease validation (#118103) test(cli): reduce redundant process launches (#118141) test(gateway): compact terminal observer fixtures (#118179) fix(agents): make requested threads sidebar-visible (#118073) test(plugins): canonicalize native resolver fixtures (#118174) test: deduplicate agent runner fixtures (#118176) refactor(policy): consolidate doctor test fixtures (#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (#118127) refactor(matrix): consolidate monitor test fixtures (#118175)
* fix(agents): make requested threads sidebar-visible * fix(agents): preserve visible spawn authority
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (openclaw#118193) fix(config): preserve secret ownership when configuration rows move (openclaw#118149) fix(cron): deliver failure alerts after persistence (openclaw#118200) chore(lint): clear 172 lint:all baseline violations in five batches (openclaw#118098) perf(gateway): remove streaming hot-path rescans (openclaw#118192) test(gateway): use in-memory task registry (openclaw#118191) test(macos): fix three races in the bounded process suites (openclaw#118196) refactor(migrate-hermes): consolidate test fixtures (openclaw#118182) test(android): share Wear transport fixtures (openclaw#118177) test(ui): deduplicate control UI e2e setup (openclaw#118180) fix(plugins): unblock prerelease validation (openclaw#118103) test(cli): reduce redundant process launches (openclaw#118141) test(gateway): compact terminal observer fixtures (openclaw#118179) fix(agents): make requested threads sidebar-visible (openclaw#118073) test(plugins): canonicalize native resolver fixtures (openclaw#118174) test: deduplicate agent runner fixtures (openclaw#118176) refactor(policy): consolidate doctor test fixtures (openclaw#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (openclaw#118127) refactor(matrix): consolidate monitor test fixtures (openclaw#118175)
Summary
Problem
Visible thread creation was rejected whenever the requesting conversation carried inherited tool restrictions. The fallback path could also create a non-dashboard session that never appeared in the sidebar.
Solution
Carry the trusted parent identity and complete normalized authority envelope into the session-creation owner boundary, then atomically persist it with the dashboard child. The same envelope survives reset, restart, and completion. Signed caller/parent mismatches remain rejected, ordinary background spawns remain hidden, and visible children cannot gain tools denied to their parent.
Maintainer security decision
Approve bounded propagation across the signed parent-bound Gateway boundary, provided the normalized inherited policy is persisted atomically before the first child turn. This PR implements that boundary and the lifecycle preservation needed to keep it fail-closed.
Validation
ad53d4419ea42ae3f98463519451cd82baa31074: restrictedvisible: truereturnedstatus: forbidden(Testbox run 30758563684)mainmovement, covering signed identity, create/reset/chat persistence, requester policy, restart ownership, session scopes, and agent tooling (Testbox run 30764546844)pnpm check, Plugin SDK baseline, test typecheck, formatting, and structured autoreview passedmain254ab826f1e32762f82612f035563df75a670b2d(Testbox run 30764438636)8b9afbd40020f497de8872e20dde1c661ac147c7contains canonicalmain0c32879d45f9a83552a0d1a4db78dec38518296b; the final main-only movement touched channel lifecycle and OpenAI realtime surfaces, not the agent/session proof contractUser impact
Asking an agent to create or open a named thread now produces a persistent sidebar-visible session without a configuration workaround, including for conversations with sender-scoped tool restrictions.