aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-12 16:25:25 +0200
committeruser <user@clank>2026-08-12 19:34:35 +0200
commit4a09a987fd88bbc79ad506d764f33ee0560ed781 (patch)
treefc9f579ac57a1b335829d344a771546418b68d9d
parentslop-tool-boxes: green heartbeat pulse; unfreeze top border when it fits (diff)
downloadsl0ppi-4a09a987fd88bbc79ad506d764f33ee0560ed781.tar.gz
sl0ppi-4a09a987fd88bbc79ad506d764f33ee0560ed781.tar.xz
sl0ppi-4a09a987fd88bbc79ad506d764f33ee0560ed781.zip
last-prompt: call it a turn, not a sl0peration
The counter increments once per user text block, so what it counts is exactly a turn in the ordinary prompt -> response sense. It also matches the vocabulary pi already uses internally (turnBudget, maxTurns), so the label no longer invents a word for a thing that has one. "round" was the other candidate and is worse: it implies a symmetric game with fixed phases, and it collides with the rounded-border language used throughout these widgets. "prompt #N" is the most literal reading of the counter, but it undersells the box -- the spinner and timer measure the whole agent run, not just the prompt. No layout change was needed. The label is 7 columns narrower, and the top border derives its dash fill from visibleWidth(leftLabel) rather than any hardcoded width, so the frame absorbs it. The cross-reference in slop-tool-boxes.ts ships in 36e422b, whose hunk it shares.
-rw-r--r--pi-ext/last-prompt.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/pi-ext/last-prompt.ts b/pi-ext/last-prompt.ts
index 14c1330..92fc769 100644
--- a/pi-ext/last-prompt.ts
+++ b/pi-ext/last-prompt.ts
@@ -1,11 +1,11 @@
/**
- * Last Prompt Topbar Extension ("last sl0peration")
+ * Last Prompt Topbar Extension ("last turn")
*
* Renders a persistent widget above the editor showing the last user prompt in
* a rounded sl0p-style frame. Spiced up with:
* - an animated running spinner + LIVE elapsed-time counter while running
* - the last run's duration shown when idle
- * - a "sl0peration #N" counter for the session
+ * - a "turn #N" counter for the session
* - a full-frame border that pulses through a color palette while running
* (accent border when idle)
*
@@ -122,13 +122,13 @@ export default function (pi: ExtensionAPI) {
const dash = (n: number) => border(h.repeat(Math.max(0, n)));
const innerWidth = Math.max(0, width - 2);
- // Left label: ◈ sl0peration #7 — stays STATIC (accent); only the border
+ // Left label: ◈ turn #7 — stays STATIC (accent); only the border
// rails pulse, so the label reads clearly against the moving frame.
const leftLabel =
" " +
theme.fg("accent", "◈") +
" " +
- theme.fg("accent", theme.bold("sl0peration")) +
+ theme.fg("accent", theme.bold("turn")) +
theme.fg("muted", ` #${count}`) +
" ";
@@ -233,7 +233,7 @@ export default function (pi: ExtensionAPI) {
}
});
- // Hide pi's built-in "Working …" status row — the last sl0peration box already
+ // Hide pi's built-in "Working …" status row — the last turn box already
// shows a live spinner + timer, so the second indicator is pure noise.
// setWorkingVisible(false) drops the whole row (spinner AND message); the empty
// frames call is a fallback for older pi builds that only knew the indicator.
@@ -288,7 +288,7 @@ export default function (pi: ExtensionAPI) {
isRunning = false;
lastCtx = ctx;
- // Walk the session branch: track last user prompt + count sl0perations.
+ // Walk the session branch: track last user prompt + count turns.
for (const entry of ctx.sessionManager.getBranch()) {
if (
entry.type === "message" &&