pi-soly 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/switch/index.ts +7 -3
package/package.json
CHANGED
package/switch/index.ts
CHANGED
|
@@ -56,8 +56,12 @@ export default function piSwitchExtension(pi: ExtensionAPI) {
|
|
|
56
56
|
if (!lastUi) return;
|
|
57
57
|
try {
|
|
58
58
|
const meta = getAgentMeta(currentAgent);
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
// Persistent pill — always visible above the input, even for the
|
|
60
|
+
// default agent. The user wants a constant mode indicator, not a
|
|
61
|
+
// transient one. Marker "▶" makes it scannable.
|
|
62
|
+
const marker = currentAgent === DEFAULT_AGENT ? "·" : "▶";
|
|
63
|
+
const pill = `${marker} ${meta.emoji} ${currentAgent}`;
|
|
64
|
+
lastUi.setStatus("pi-switch", pill);
|
|
61
65
|
} catch { /* no ui yet */ }
|
|
62
66
|
}
|
|
63
67
|
|
|
@@ -99,7 +103,7 @@ export default function piSwitchExtension(pi: ExtensionAPI) {
|
|
|
99
103
|
});
|
|
100
104
|
|
|
101
105
|
// ----- Ctrl+Shift+S: hot cycle (no popup, no confirmation) -----
|
|
102
|
-
pi.registerShortcut("
|
|
106
|
+
pi.registerShortcut("f2", {
|
|
103
107
|
description: "Cycle to next agent (worker → oracle → scout → …)",
|
|
104
108
|
handler: (sctx) => {
|
|
105
109
|
lastUi = sctx.ui;
|