Files
oh-my-pi/packages
roboomp 34fef55d25 fix(session): serialize ArtifactManager first-use init
#ensureDir checked #initialized then set it across an await
#scanExistingIds() gap, so two concurrent first-use save/allocatePath
callers both re-seeded #nextId=maxId+1 and allocateId() handed both the
same id — silently overwriting the first artifact (same toolType) or
making artifact:// resolution ambiguous (different toolTypes).

Memoize the initial scan as a single in-flight #initPromise so all
concurrent callers share one initialization and receive distinct ids.

Fixes #4091
2026-07-23 19:46:30 +00:00
..
2026-07-23 16:42:40 +02:00
2026-07-23 00:41:54 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00
2026-07-23 14:40:52 +02:00