antechamber 1.0.16 → 1.0.17
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 +8 -0
- package/dist/pi-rpc.d.ts +2 -0
- package/dist/pi-rpc.js +2 -0
- package/dist/work-status.d.ts +8 -1
- package/dist/work-status.js +18 -2
- package/extensions/omo-compat/package.json +1 -1
- package/extensions/omo-dag/package.json +1 -1
- package/extensions/omo-work/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.17] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Keep a session's agent out of idle eviction while a background terminal session (`bash` run in the background)
|
|
15
|
+
is still running. The reaper killed it with the agent 15 minutes after the turn ended, so a CI poller or long
|
|
16
|
+
build died silently and the session never woke up with its result.
|
|
17
|
+
|
|
10
18
|
## [1.0.16] - 2026-10-23
|
|
11
19
|
|
|
12
20
|
### Fixed
|
package/dist/pi-rpc.d.ts
CHANGED
|
@@ -101,6 +101,8 @@ export declare class PiRpcClient extends EventEmitter {
|
|
|
101
101
|
private agentActive;
|
|
102
102
|
private compacting;
|
|
103
103
|
private sessionPath;
|
|
104
|
+
/** Wall-clock spawn time; work OmO records before it belongs to an earlier agent process. */
|
|
105
|
+
readonly startedAtMs: number;
|
|
104
106
|
get pid(): number | undefined;
|
|
105
107
|
get isBusy(): boolean;
|
|
106
108
|
get sessionFile(): string | undefined;
|
package/dist/pi-rpc.js
CHANGED
|
@@ -114,6 +114,8 @@ export class PiRpcClient extends EventEmitter {
|
|
|
114
114
|
agentActive = false;
|
|
115
115
|
compacting = false;
|
|
116
116
|
sessionPath;
|
|
117
|
+
/** Wall-clock spawn time; work OmO records before it belongs to an earlier agent process. */
|
|
118
|
+
startedAtMs = Date.now();
|
|
117
119
|
get pid() {
|
|
118
120
|
return this.proc.pid;
|
|
119
121
|
}
|
package/dist/work-status.d.ts
CHANGED
|
@@ -70,7 +70,14 @@ export declare class WorkStatusBridge {
|
|
|
70
70
|
private readonly work;
|
|
71
71
|
constructor(monitors: MonitorSessions);
|
|
72
72
|
private state;
|
|
73
|
-
/**
|
|
73
|
+
/**
|
|
74
|
+
* Evicting the agent process kills its detached eval cells and background terminal sessions (a
|
|
75
|
+
* `bash` run_in_background shell is owned by the agent, whose PTY closes when it exits, so its exit
|
|
76
|
+
* never wakes the session). A live wake source keeps it, and so does a manifest entry whose recorded
|
|
77
|
+
* process is alive and that this agent process started: a crashed or evicted agent never records
|
|
78
|
+
* its shells' exits, and such a leftover pid may since belong to an unrelated process. OmO itself
|
|
79
|
+
* counts an entry without `runtime` as not alive (terminal restore, `defaultBackgroundAlive`).
|
|
80
|
+
*/
|
|
74
81
|
wire(s: ManagedSession): void;
|
|
75
82
|
observe(s: ManagedSession, ev: Record<string, unknown>): void;
|
|
76
83
|
/** The agent process exited: its in-process wake sources and timers died with it. */
|
package/dist/work-status.js
CHANGED
|
@@ -138,9 +138,25 @@ export class WorkStatusBridge {
|
|
|
138
138
|
}
|
|
139
139
|
return work;
|
|
140
140
|
}
|
|
141
|
-
/**
|
|
141
|
+
/**
|
|
142
|
+
* Evicting the agent process kills its detached eval cells and background terminal sessions (a
|
|
143
|
+
* `bash` run_in_background shell is owned by the agent, whose PTY closes when it exits, so its exit
|
|
144
|
+
* never wakes the session). A live wake source keeps it, and so does a manifest entry whose recorded
|
|
145
|
+
* process is alive and that this agent process started: a crashed or evicted agent never records
|
|
146
|
+
* its shells' exits, and such a leftover pid may since belong to an unrelated process. OmO itself
|
|
147
|
+
* counts an entry without `runtime` as not alive (terminal restore, `defaultBackgroundAlive`).
|
|
148
|
+
*/
|
|
142
149
|
wire(s) {
|
|
143
|
-
s.hasWakeSources = () =>
|
|
150
|
+
s.hasWakeSources = () => {
|
|
151
|
+
if ((this.work.get(s.info.id)?.wakeSources.size ?? 0) > 0)
|
|
152
|
+
return true;
|
|
153
|
+
const sessionFile = s.piPath;
|
|
154
|
+
const piSessionId = s.piSessionId;
|
|
155
|
+
const spawnedAt = s.pi?.startedAtMs;
|
|
156
|
+
if (sessionFile === undefined || piSessionId === undefined || spawnedAt === undefined)
|
|
157
|
+
return false;
|
|
158
|
+
return readBackgroundSessions(sessionFile, piSessionId).some((shell) => shell.pid !== undefined && shell.startedAtMs >= spawnedAt);
|
|
159
|
+
};
|
|
144
160
|
}
|
|
145
161
|
observe(s, ev) {
|
|
146
162
|
if (ev.name === WAKE_SOURCE_STATE_EVENT) {
|