pi-goal-list-loop-audit 0.34.1 → 0.34.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/extensions/loops/goal.ts +8 -1
- package/package.json +1 -1
package/extensions/loops/goal.ts
CHANGED
|
@@ -2023,7 +2023,14 @@ async function cmdResume(ctx: ExtensionContext): Promise<void> {
|
|
|
2023
2023
|
const usage = state.goal.usage
|
|
2024
2024
|
? { tokensUsed: state.goal.usage.tokensUsed, tokensLimit: freshLimit }
|
|
2025
2025
|
: undefined;
|
|
2026
|
-
|
|
2026
|
+
// v0.34.2: clear the stale-handle interrupt marker on a MANUAL resume too —
|
|
2027
|
+
// the only clear-site used to be the autoResume restore path, so with
|
|
2028
|
+
// autoresume=off a resumed goal kept the red "⚠ interrupted — stale handle"
|
|
2029
|
+
// status line forever while actively working (hegemon, 2026-08-01). The
|
|
2030
|
+
// marker's promise ("a fresh session will resume you") is fulfilled by a
|
|
2031
|
+
// manual resume exactly as by an automatic one. (staleEntry still re-marks
|
|
2032
|
+
// below — a resume inside a stale session is a NEW interrupt.)
|
|
2033
|
+
updateGoal({ status: "active", pauseReason: undefined, pauseSuggestedAction: undefined, pauseKind: undefined, pauseOptions: undefined, pauseRecommended: undefined, pauseResumeAt: undefined, interruptedAt: undefined, interruptedReason: undefined, ...(staleEntry ? { interruptedAt: nowIso(), interruptedReason: "resumed in a stale session" } : {}), ...(usage ? { usage } : {}) }, ctx);
|
|
2027
2034
|
if (staleEntry) return;
|
|
2028
2035
|
// v0.22.5: say what was resumed — with a non-empty list this also resumes
|
|
2029
2036
|
// the queue (the active goal IS the list's head item).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-goal-list-loop-audit",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "Mission control for autonomous pi: interview-drafted goals, an audited task queue, and forever-loops (metric, spec, project-audit) that run for hours. An isolated extension-less auditor re-verifies every completion with raw evidence; confirmed drafts, decision pauses and consent gates keep you in charge.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dracon",
|