Repository navigation
feat(modes): bundle private roles and skills with scoped delegation - #2548
Merged
Merged
Conversation
added 2 commits
November 24, 2026 16:19
Keep a mode, its private roles and its skills portable without leaking them into other conversations. Resolve the effective catalog in the host and retain legacy Markdown modes when no manifest exists. Carry the original request separately from coordinator guidance, allow corrections to a live delegate, and enforce optional per-task write limits at the actual filesystem operation. Closes #2544
Let consumers distinguish an unavailable boundary from a disallowed target or a session that changed during approval. Check the constant used by the host alongside literal RPC errors.
Deploying pi-desktop with
|
| Latest commit: |
4bd6d4a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7bdbfd10.pi-desktop.pages.dev |
| Branch Preview URL: | https://feat-2544-mode-bundles.pi-desktop.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2544. A mode can travel as a directory:
mode.yamlreferences a prompt and private roles; valid skills are discovered from disk. A present manifest never falls back tomode.md. The existing Settings container has Mode / Subagents / Skills tabs. The session keeps its own model; each private role owns its pins, fallback order and thinking levels.Task now accepts the original expert request separately from coordinator context, can narrow writes for one delegation, and can queue corrections with
TaskSend. The host checks actual write/edit targets and move destinations. Settings edits, cancellation, and resume cannot silently expand a running child's permissions.Requirement / design
Verification
Candidate
4bd6d4a1fon7254a0452. Local Windows: full workspace build, desktop typecheck, lint, architecture/base checks, Rust format, all-targets check and clippy. Mode-related desktop/IPC/disk/real Electron suites: 151 passed, 2 skipped (file symlink privilege); junction and hardlink cases passed. Host write scopes: 10/10. Runtime delegation suite: 17/17, including a red/green regression for a truncated user quote. Real Host mode workflow, real sidecar model/fallback and parallel edit isolation passed. Desktop stop/follow-up assertions passed with graceful shutdown in the local test harness.The broad local suites were run, not all green: Windows desktop full sweep: 5272 passed, 101 failed, 13 skipped (the error-code contract was fixed and rerun separately). Coverage includes macOS signing, POSIX path assumptions, symlink permissions and unrelated UI probes. The host error-code registry regression was fixed and retested. All 22 remaining Rust Windows failures from the normalized-temp run also failed on unmodified
origin/main. The docs locale fixture likewise reproduces a path separator mismatch on main. Runtime tests on an isolated temp drive: 2171 passed, 1 skipped, 1 attachment path spelling failure; that suite passed 6/6 on the physical path. The global registry E2E deliberately refuses to touch Windows known folders. CI is the authoritative Linux/integration check.