antechamber 1.0.6 → 1.0.7
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,10 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.0.7] - 2026-10-20
|
|
11
|
+
|
|
12
|
+
- fix(session): defer registry snapshots for cached lookups (#54)
|
|
13
|
+
|
|
10
14
|
## [1.0.6] - 2026-10-20
|
|
11
15
|
|
|
12
16
|
- docs: integrate the OmO Work extension across the docs (#55)
|
|
@@ -15,6 +19,8 @@ and this project uses [Semantic Versioning](https://semver.org/).
|
|
|
15
19
|
|
|
16
20
|
### Fixed
|
|
17
21
|
|
|
22
|
+
- Avoid copying the entire session registry for cached session lookups, preventing session lists
|
|
23
|
+
from blocking transcript loading after startup.
|
|
18
24
|
- Reduce startup CPU usage and boot delays for large session histories by committing restoration metadata
|
|
19
25
|
in one registry write, while preserving restored costs, child sessions and independent registry writers.
|
|
20
26
|
|
package/dist/session-store.js
CHANGED
|
@@ -385,8 +385,10 @@ export class SessionStore {
|
|
|
385
385
|
this.file = join(dir, "sessions.json");
|
|
386
386
|
}
|
|
387
387
|
load() {
|
|
388
|
-
if (this.batchState !== undefined)
|
|
388
|
+
if (this.batchState !== undefined) {
|
|
389
|
+
this.batchState.entries ??= structuredClone((this.entries ??= this.readEntries()));
|
|
389
390
|
return this.batchState.entries;
|
|
391
|
+
}
|
|
390
392
|
if (this.entries !== undefined)
|
|
391
393
|
return this.entries;
|
|
392
394
|
this.entries = this.readEntries();
|
|
@@ -457,7 +459,7 @@ export class SessionStore {
|
|
|
457
459
|
mutate(change) {
|
|
458
460
|
if (this.batchState !== undefined) {
|
|
459
461
|
this.batchState.changes.push(change);
|
|
460
|
-
change(this.
|
|
462
|
+
change(this.load());
|
|
461
463
|
return;
|
|
462
464
|
}
|
|
463
465
|
this.withRegistryLock(() => {
|
|
@@ -472,7 +474,7 @@ export class SessionStore {
|
|
|
472
474
|
if (this.batchState !== undefined)
|
|
473
475
|
return action();
|
|
474
476
|
const changes = [];
|
|
475
|
-
const batch = { entries:
|
|
477
|
+
const batch = { entries: undefined, changes };
|
|
476
478
|
this.batchState = batch;
|
|
477
479
|
try {
|
|
478
480
|
const result = action();
|