mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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:
parent
6d09da3f27
commit
ef79af3cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue