Repository navigation
fix(delegate): configurable fleet-inspector shortcut + move default off ctrl+alt+f (#412) - #414
Conversation
Reviewed PR #414 (single commit Verification (fresh run)
Diff cleanliness — clean. All 7 changed files are on-topic ( Correctness — read each change in context:
Duplicate screening — searched open/closed issues & PRs for the fleet-shortcut / pi-subagents conflict: no duplicate. The PR correctly carries Decision point — my recommendation: keep the default at One non-blocking FYI (pre-existing, not introduced here): on a host that lacks 结论(中文一句话): 独立复核了 PR #414 —— typecheck/build/全量测试(703 例)全绿、diff 干净(仅 7 个相关文件,无版本/锁文件改动)、配置解析与注册逻辑正确且已对照 Pi 源码确认「非法键不会导致启动失败」、无重复项;建议按当前默认键 |
…ff ctrl+alt+f (#412) Add delegate.fleetShortcut (acp.json) so the acp_delegate fleet-inspector TUI key can be configured or disabled (empty string). Default moved ctrl+alt+f -> ctrl+alt+d to stop colliding with pi-subagents' hard-coded ctrl+alt+f (Pi loader cannot dedupe/override cross-extension shortcut conflicts). fleet-widget hint now renders the effective key dynamically.
8c18d24 to
edc7d2f
Compare
📦 Built Extension ArtifactBranch: Option A — Install from npm PR tag (recommended)pi install npm:billion-context-pi@pr-414Each push to this PR publishes a new version under the Option B — Download artifact
tar xzf billion-context-pi-pr414.tgz
pi install ./packageThis comment is automatically updated on each push. |
|
Conflict with Two conflicts, both mechanical:
Verified after the rebase: |
…shortcut-config fix(delegate): configurable fleet-inspector shortcut + move default off ctrl+alt+f (ranxianglei#412)
Problem
With both
billion-context-pi(ACP) andpi-subagentsinstalled, Pi prints an orange warning every startup:Both extensions unconditionally hard-code
ctrl+alt+f. Pi's loader (getShortcuts()) only warns on cross-extension conflicts and lets the later-loaded binding silently win — no dedup, no user override. So one of the two fleet inspectors can't be opened from the keyboard.Same conflict reported on the other side: nicobailon/pi-subagents#2196
Fix
Make ACP's fleet-inspector key configurable and move its default off the collision:
acp.jsonoptiondelegate.fleetShortcut(any Pi key id); empty string""disables registration.ctrl+alt+f→ctrl+alt+d: the inspector is already reachable via/acp-fleet, while pi-subagents' status bar advertisesCtrl+Alt+F Fleet(muscle memory lives there), so ACP yields. Matches the reporter's local workaround.formatShortcutLabel, mirroring pi-subagents casing) instead of a hard-coded string.Files:
src/config.ts(DEFAULT_FLEET_SHORTCUT/resolveFleetShortcut/DelegatePolicy),src/index.ts(register per policy at session_start),src/fleet-widget.ts(dynamic hint),tests/fleet-shortcut.test.ts(new),CONFIGURATION.md(+zh-CN),CHANGELOG.md.Verification
npm run typecheck→ cleannpm test→ 703 tests, 700 pass, 0 fail, 3 skipped (incl. 7 new)npm run build→ clean;@earendil-works/pi-tuiimport is type-only (erased, no runtime dep)One decision point
The new default
ctrl+alt+dresolves the collision without touching pi-subagents and is fully overridable viadelegate.fleetShortcut(or""to disable). If you'd prefer ACP keepsctrl+alt+fand pi-subagents yields instead, say so and I'll flip it.Fixes #412