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 — [FEATURE]:Expose session metadata in the V2 API so programmatic run sessions are attributable · Issue #40384 · anomalyco/opencode Open Labels DescriptionFeature hasn't been suggested before.
Describe the enhancement you want to requestAudited against: branch SummaryThe V2 session table already has a free-form I'd like MotivationI drive OpenCode programmatically via
Today none of this is possible without heuristics like matching on Current behaviourThe storage exists but is unreachable from V2. The column is defined — metadata: text({ mode: "json" }).$type<Record<string, unknown>>(), The only writer is the V1 projector — metadata: info.metadata, sourced from the V1 metadata: optional(Schema.Record(Schema.String, Schema.Any)), V2 never reads it. V2 cannot write it. The payload: Schema.Struct({ id: Session.ID.pipe(Schema.optional), agent: Agent.ID.pipe(Schema.optional), model: Model.Ref.pipe(Schema.optional), location: Location.Ref.pipe(Schema.optional), }), and there is no
client.session.create({ agent: prepared.agent, model: prepared.model, location: { directory: location.directory, workspaceID: location.workspaceID }, }) So a session created by Proposed changeOption A, preferred — surface the column that already exists:
No migration is needed since the column is already in the schema, and V1-projected sessions keep whatever metadata they already carry. Option B — a dedicated typed I lean toward A because it covers both, and B can be layered on later if the enum turns out to be worth having on its own. Relationship to #4489#4489 asks for They are complementary rather than competing. Suppression loses the cost and token data, which is part of what I want to keep. If both land, NotesAudited by checking out Reacted by Benoit de Chezelles Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |