Skip to content

Commit 40c6654

Browse files
committed
fix: preserve goal continuation and prepare 1.0.16
1 parent 73ae17e commit 40c6654

15 files changed

Lines changed: 219 additions & 39 deletions

File tree

‎package-lock.json‎

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
"engines": {
5050
"node": "^22.12.0 || >=23.3.0"
5151
},
52-
"version": "1.0.15",
52+
"version": "1.0.16",
5353
"dependencies": {
54-
"@ponythewhite/base-context": "1.0.15",
54+
"@ponythewhite/base-context": "1.0.16",
5555
"get-east-asian-width": "^1.6.0"
5656
},
5757
"overrides": {

‎packages/agent/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ponythewhite/base-context-agent",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "Synerise base-context agent runtime with context management and native recovery",
55
"type": "module",
66
"main": "./dist/index.js",
@@ -19,7 +19,7 @@
1919
"prepublishOnly": "npm --prefix ../.. run build:source"
2020
},
2121
"dependencies": {
22-
"@ponythewhite/base-context-ai": "1.0.15",
22+
"@ponythewhite/base-context-ai": "1.0.16",
2323
"typebox": "^1.3.9"
2424
},
2525
"keywords": [

‎packages/ai/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ponythewhite/base-context-ai",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "Synerise base-context unified LLM API and provider configuration",
55
"type": "module",
66
"main": "./dist/index.js",

‎packages/coding-agent/.changes/native-ci-alignment.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎packages/coding-agent/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.0.16] - 2026-09-28
4+
5+
- Fixed background child-usage updates incorrectly stopping an active goal during request preparation.
6+
- Kept failed goals visible in the bottom-right status tray instead of hiding them.
7+
- Fixed temporary memory retention when reading a final multi-chunk line without a trailing newline.
8+
39
## [1.0.15] - 2026-09-28
410

511
- Fixed compaction of long-lived sessions by selecting the active canonical context before source hydration. This covers manual, agent-requested, threshold, and overflow-recovery compaction without increasing source limits.

‎packages/coding-agent/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ponythewhite/base-context",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "Synerise base-context: a coding and research agent with durable context and a persistent Python REPL",
55
"type": "module",
66
"bin": {
@@ -42,9 +42,9 @@
4242
},
4343
"dependencies": {
4444
"@agentclientprotocol/sdk": "^1.3.0",
45-
"@ponythewhite/base-context-agent": "1.0.15",
46-
"@ponythewhite/base-context-ai": "1.0.15",
47-
"@ponythewhite/base-context-tui": "1.0.15",
45+
"@ponythewhite/base-context-agent": "1.0.16",
46+
"@ponythewhite/base-context-ai": "1.0.16",
47+
"@ponythewhite/base-context-tui": "1.0.16",
4848
"@silvia-odwyer/photon-node": "^0.3.4",
4949
"chalk": "^5.5.0",
5050
"cli-highlight": "^2.1.11",

‎packages/coding-agent/src/core/agent-session.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6257,10 +6257,10 @@ export class AgentSession {
62576257
/** Persist mutable advice before the request owner captures its source and epoch ACK boundary. */
62586258
private async _appendHarnessSnapshotIfChanged(): Promise<() => void> {
62596259
const manager = this.sessionManager;
6260-
let leafId = manager.getLeafId();
6261-
const sourceIsCurrent = manager.captureCompactionSourceOwner();
6260+
const sourceIsCurrent = manager.captureCompactionContentOwner();
6261+
let ownAppends = 0;
62626262
const assertCurrent = () => {
6263-
if (this._disposed || this.sessionManager !== manager || !sourceIsCurrent() || manager.getLeafId() !== leafId)
6263+
if (this._disposed || this.sessionManager !== manager || !sourceIsCurrent(ownAppends))
62646264
throw new Error("Harness snapshot source changed before request ownership");
62656265
};
62666266
let previous: CustomMessage["content"] | undefined;
@@ -6286,8 +6286,9 @@ export class AgentSession {
62866286
: undefined,
62876287
});
62886288
if (previous === content) return assertCurrent;
6289-
const entryId = await manager.appendCustomMessageEntryWithRollback(HARNESS_SNAPSHOT_CUSTOM_TYPE, content, false);
6290-
if (this._disposed || this.sessionManager !== manager || !sourceIsCurrent() || manager.getLeafId() !== entryId)
6289+
await manager.appendCustomMessageEntryWithRollback(HARNESS_SNAPSHOT_CUSTOM_TYPE, content, false);
6290+
ownAppends++;
6291+
if (this._disposed || this.sessionManager !== manager || !sourceIsCurrent(ownAppends))
62916292
throw new Error("Harness snapshot source changed during append");
62926293
if (!manager.isPersisted())
62936294
this.agent.state.messages.push({
@@ -6297,7 +6298,6 @@ export class AgentSession {
62976298
display: false,
62986299
timestamp: Date.now(),
62996300
});
6300-
leafId = entryId;
63016301
return assertCurrent;
63026302
}
63036303

‎packages/coding-agent/src/core/session-manager.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,6 +2617,14 @@ export class SessionManager {
26172617
state.branchSelectionRevision === selectionRevision;
26182618
}
26192619

2620+
/** Capture content ownership, ignoring bookkeeping and allowing the caller's known ACKed content appends. */
2621+
captureCompactionContentOwner(): (ownAppends?: number) => boolean {
2622+
const sourceIsCurrent = this.captureCompactionSourceOwner();
2623+
const state = this.writeState;
2624+
const revision = state.compactionRevision;
2625+
return (ownAppends = 0) => sourceIsCurrent() && state.compactionRevision === revision + ownAppends;
2626+
}
2627+
26202628
bindCompactionSink(limits: SessionHistoryReadLimits = DEFAULT_MANAGER_HISTORY_LIMITS): BoundCompactionSink {
26212629
const state = this.writeState;
26222630
const owner = state.owner;

‎packages/coding-agent/src/modes/interactive/interactive-mode.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6125,9 +6125,10 @@ export class InteractiveMode {
61256125
return `Goal paused (${this.formatGoalElapsed(goal.timeUsedSeconds)})`;
61266126
case "budget_limited":
61276127
return `Goal budget limited (${this.formatGoalElapsed(goal.timeUsedSeconds)})`;
6128+
case "error":
6129+
return theme.fg("error", "Goal error") + theme.getFgAnsi("muted");
61286130
case "idle":
61296131
case "complete":
6130-
case "error":
61316132
return undefined;
61326133
default: {
61336134
const _exhaustive: never = goal.status;

0 commit comments

Comments
 (0)