GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — feat: Allow setting custom session ID when creating a session · Issue #12916 · anomalyco/opencode Closed as duplicate DescriptionProblemWhen building automation on top of OpenCode (e.g. agent orchestrators that spawn
Currently, Current BehaviorThe public // Session.create() - public API (line ~140) export const create = fn( z.object({ parentID: Identifier.schema("session").optional(), title: z.string().optional(), permission: Info.shape.permission, }).optional(), async (input) => { return createNext({ parentID: input?.parentID, directory: Instance.directory, title: input?.title, permission: input?.permission, // ← no id parameter }) }, ) However, the internal // Session.createNext() - internal (line ~206) export async function createNext(input: { id?: string // ← accepts optional id title?: string parentID?: string directory: string permission?: PermissionNext.Ruleset }) { const result: Info = { id: Identifier.descending("session", input.id), // ← uses it if provided // ... } } And function generateID(prefix, descending, given?) { if (!given) return create(prefix, descending) if (!given.startsWith(prefixes[prefix])) throw new Error(`ID \${given} does not start with \${prefixes[prefix]}`) return given } Desired BehaviorAccept an optional // Updated Session.create() schema z.object({ id: Identifier.schema("session").optional(), // ← new parentID: Identifier.schema("session").optional(), title: z.string().optional(), permission: Info.shape.permission, }).optional() When
When
Implementation NotesThe internal plumbing already exists. The changes needed are minimal:
Optionally: Use CaseWe spawn Current (broken):
With this feature:
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |