fix: use ulid() instead of Identifier.ascending for loopId

Identifier.ascending() only accepts specific prefixes (message, part,
permission, pty, session, user). Use ulid() which is already imported
and generates unique IDs without type constraints.
This commit is contained in:
Thoughtless Labs 2025-12-05 11:20:15 -05:00
parent 6d09da3f27
commit ef79af3cfb

View file

@ -210,7 +210,7 @@ export namespace SessionPrompt {
function start(sessionID: string) {
const s = state()
if (s[sessionID]) return
const loopId = Identifier.ascending("loop")
const loopId = ulid()
const controller = new AbortController()
s[sessionID] = {
abort: controller,