antechamber 1.0.7 → 1.0.8
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.8] - 2026-10-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Allow messages in restored sessions whose active goal has already resumed a response, without
|
|
15
|
+
rejecting the send as a session-tree navigation.
|
|
16
|
+
|
|
10
17
|
## [1.0.7] - 2026-10-20
|
|
11
18
|
|
|
12
19
|
- fix(session): defer registry snapshots for cached lookups (#54)
|
package/dist/sessions.js
CHANGED
|
@@ -14,7 +14,7 @@ import { SessionLifecycle } from "./lifecycle.js";
|
|
|
14
14
|
import { ApprovalBridge, extensionUiRequestFrom } from "./approvals.js";
|
|
15
15
|
import { getAgentName, getExposedAgentNames } from "./agent-name.js";
|
|
16
16
|
import { RequestBodyError } from "./http.js";
|
|
17
|
-
import { bindMessageEntries, durableShellTree, followExternalAppends, forkConversation, getEntries, navigate, recordTurn, readSessionTree, revertConversation, SessionTreeError, unrevertConversation, } from "./session-tree.js";
|
|
17
|
+
import { bindMessageEntries, branchEntries, durableShellTree, followExternalAppends, forkConversation, getEntries, navigate, recordTurn, readSessionTree, revertConversation, SessionTreeError, unrevertConversation, } from "./session-tree.js";
|
|
18
18
|
import { SubagentBridge } from "./subagents.js";
|
|
19
19
|
import { MonitorSessions } from "./monitor-sessions.js";
|
|
20
20
|
import { WorkStatusBridge } from "./work-status.js";
|
|
@@ -1162,6 +1162,7 @@ export class SessionManager {
|
|
|
1162
1162
|
throw new Error(`pi session file is gone: ${restored.piPath}`);
|
|
1163
1163
|
this.refreshMessageCache(s);
|
|
1164
1164
|
await this.lifecycle.makeRoom();
|
|
1165
|
+
const resumedLeaf = readSessionTree(restored.piPath).leafId;
|
|
1165
1166
|
const pi = new PiRpcClient({
|
|
1166
1167
|
cwd: s.info.directory,
|
|
1167
1168
|
args: ["--session", restored.piPath],
|
|
@@ -1186,12 +1187,19 @@ export class SessionManager {
|
|
|
1186
1187
|
// Restore selection before publishing a runtime that prompts can use.
|
|
1187
1188
|
const thinking = state.data.thinkingLevel === undefined ? {} : { thinkingLevel: state.data.thinkingLevel };
|
|
1188
1189
|
await setThinkingLevel(thinking, pi, s.thinkingLevel);
|
|
1189
|
-
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
if (
|
|
1190
|
+
let tree = await getEntries(pi);
|
|
1191
|
+
const saved = s.tree.leafId;
|
|
1192
|
+
// Resume hooks can already be streaming on this branch. Navigating back would
|
|
1193
|
+
// discard their progress, and OmO rejects even a no-op navigation while streaming.
|
|
1194
|
+
if (saved !== undefined &&
|
|
1195
|
+
saved !== tree.leafId &&
|
|
1196
|
+
(s.tree.revert || resumedLeaf !== saved || !branchEntries(tree).some((entry) => entry.id === saved))) {
|
|
1197
|
+
const leaf = await navigate(pi, saved);
|
|
1198
|
+
tree = await getEntries(pi);
|
|
1199
|
+
if (tree.leafId !== leaf)
|
|
1200
|
+
throw new SessionTreeError("Revival did not restore the saved navigation");
|
|
1194
1201
|
s.tree.leafId = leaf;
|
|
1202
|
+
}
|
|
1195
1203
|
bindMessageEntries(s, tree);
|
|
1196
1204
|
if (thinking.thinkingLevel !== undefined)
|
|
1197
1205
|
s.thinkingLevel = thinking.thinkingLevel;
|