Commit Graph

4972 Commits

Author SHA1 Message Date
Kit Langton 0033c4474c fix(httpapi): preserve legacy SDK error parity 2026-04-28 22:16:49 -04:00
Kit Langton 80bcc8d478 fix(httpapi): restore CI schema parity 2026-04-28 22:10:41 -04:00
Kit Langton d0f6065e4c feat: add SSE event schemas to HttpApi OpenAPI spec
Add effectPayloads() to BusEvent and SyncEvent that build Effect
Schemas from the same registries the Hono spec uses. Wire them into
OpenCodeHttpApi via HttpApi.AdditionalSchemas so both specs emit
identical Event/SyncEvent component schemas (55 event types).
2026-04-28 22:05:24 -04:00
Kit Langton b6da0a9cda refactor: replace Schema.Any ZodOverride with Effect schemas for error types
Add EffectSchema to namedSchemaError for HttpApi OpenAPI generation.
Replace Schema.Any + ZodOverride bridges on RetryPart.error and
AssistantMessage.error with proper Effect Schema unions, producing
concrete discriminated union types in the HttpApi spec instead of
unknown.
2026-04-28 21:56:40 -04:00
Kit Langton 967fa4d3bb fix: match Hono response descriptions in HttpApi OpenAPI spec
Add ResponseDescriptions map to public.ts transform that overwrites
the generic "Success" descriptions with the endpoint-specific
descriptions from the Hono spec (115 endpoints).
2026-04-28 21:46:10 -04:00
Kit Langton a35dc04d15 refactor: strip optional null from all component schemas, not just request bodies
Extends stripOptionalNull to run over every component schema, closing
~200 null-vs-undefined mismatches between Hono and HttpApi SDK output.
Removes LegacyBodyRefParameters since components are now pre-cleaned.
Adds scripts/diff-sdk-types.sh for comparing Hono vs HttpApi SDK types.
2026-04-28 21:39:42 -04:00
Kit Langton 51bc4246d2 fix(httpapi): preserve session list query parity 2026-04-28 21:34:55 -04:00
Kit Langton a5e6263c58 test(httpapi): cover workspace target routing 2026-04-28 21:33:50 -04:00
Kit Langton 966f5acef4 refactor: tighten numeric schemas and simplify public.ts OpenAPI transform
- Replace Schema.Finite with NonNegativeInt/PositiveInt where values are
  always integers (timestamps, token counts, positions, PIDs, etc.)
- Simplify public.ts: remove finite-number normalization, TUI event
  hoisting, and sync replay inlining (all now handled at schema level)
- Add generic self-referencing $ref fixer for Effect OpenAPI generation
  bug where annotated union arms sharing AST nodes produce circular
  component schemas
- Keep: optional null stripping, workspace re-nulling, SSE response
  override, instance query param injection, query param type overrides
2026-04-28 21:33:50 -04:00
Kit Langton 0b395cd13e fix(httpapi): keep backend feature flagged 2026-04-28 21:33:50 -04:00
Kit Langton 35239bddef refactor(httpapi): split groups from handlers 2026-04-28 21:33:50 -04:00
Kit Langton 41367fa3ba refactor: use Schema.Finite instead of Schema.Number for OpenAPI-facing schemas
Schema.Number emits anyOf:[number, string enum(Infinity/-Infinity/NaN)] in
OpenAPI because JS numbers include non-finite values. Schema.Finite adds an
isFinite check so the OpenAPI output is just {type:"number"}, eliminating
the need for post-hoc normalization in public.ts.
2026-04-28 21:33:16 -04:00
Kit Langton 97caa6bf82 refactor(httpapi): simplify route layer composition 2026-04-28 21:33:15 -04:00
Kit Langton 191eb357bc refactor(httpapi): encode event streams with effect sse 2026-04-28 21:33:15 -04:00
Kit Langton b03d064127 test(httpapi): cover sdk prompt and stream parity 2026-04-28 21:33:15 -04:00
Kit Langton 945ad08380 test(httpapi): expand sdk backend parity 2026-04-28 21:33:15 -04:00
Kit Langton cbc8847af8 fix(httpapi): align default backend parity 2026-04-28 21:33:15 -04:00
Kit Langton d58ebc5cf4 Default dev and beta to HttpApi 2026-04-28 21:33:15 -04:00
Luke Parker 9fbeafb63e fix: clear timeout after promise rejection (#24864) 2026-04-28 23:37:12 +00:00
opencode-agent[bot] 91bd295209 chore: generate 2026-04-28 23:11:59 +00:00
Luke Parker d4bf70be06 fix(bash): memory leak - release parsed syntax trees (#24861)
Co-authored-by: jiwenshang <jiwenshang@xiaohongshu.com>
2026-04-28 23:10:48 +00:00
James Long 9209c04370 feat(core): filter sessions by path and add setting to disable (#24849) 2026-04-28 16:49:13 -04:00
Kit Langton 379e7f3f20 test(httpapi): cover sdk effect routes (#24836) 2026-04-28 16:34:06 -04:00
opencode-agent[bot] 366d11e1f8 chore: generate 2026-04-28 20:33:13 +00:00
Kit Langton 58836e75f0 fix(httpapi): wire global and control handlers (#24835) 2026-04-28 16:31:45 -04:00
Aiden Cline 0acac216ae fix(copilot): ensure available variants sync from api (#24734)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-28 14:58:51 -05:00
opencode 276d162044 sync release versions for v1.14.29 2026-04-28 18:34:48 +00:00
opencode-agent[bot] 1b0ed983c5 chore: generate 2026-04-28 18:25:23 +00:00
Kit Langton 2e8d690ab1 fix(httpapi): finish sdk openapi parity (#24827) 2026-04-28 14:24:10 -04:00
Kit Langton 1ff8d289af fix(tui): handle Zed selection byte offsets (#24825) 2026-04-28 14:09:39 -04:00
Dax d54ffbda1c tui: ignore invalid custom themes to prevent startup crashes (#24645) 2026-04-28 13:58:55 -04:00
Kit Langton c00058ed7a fix(httpapi): align request body openapi shape (#24811) 2026-04-28 12:55:37 -04:00
James Long 2c2fc3499b feat(core): store relative path for sessions (#24704) 2026-04-28 11:51:24 -04:00
Kit Langton ea3c6c3481 fix(httpapi): document instance query parameters (#24809) 2026-04-28 11:10:00 -04:00
opencode-agent[bot] 9b68b7195a chore: generate 2026-04-28 15:05:37 +00:00
Kit Langton 7739cc53b4 refactor(httpapi): fork server startup by flag (#24799) 2026-04-28 11:02:35 -04:00
Kit Langton e57d0c2fee fix(httpapi): document tui bad request responses
Document legacy 400 bad-request responses on TUI Effect HttpApi payload-validation endpoints and cover them with OpenAPI parity tests.
2026-04-28 09:23:54 -04:00
Kit Langton 2a4f2bf527 fix(httpapi): align sync seq validation
Reject negative and fractional sync sequence values in Effect HttpApi schemas so replay/history validation matches the legacy Hono routes.
2026-04-28 09:22:49 -04:00
opencode-agent[bot] bb9e445257 chore: generate 2026-04-28 04:45:24 +00:00
Aiden Cline 528fb1d404 fix: sanitize tools for moonshot (#24730) 2026-04-27 23:44:21 -05:00
Kit Langton 796b652d2b fix(httpapi): preserve mcp oauth error parity (#24706) 2026-04-27 22:33:21 -04:00
Kit Langton 4d74849c1a fix(tui): keep Zed context polling responsive (#24711) 2026-04-27 22:24:04 -04:00
Kit Langton 704eb00de4 chore: bump effect beta (#24705) 2026-04-27 21:58:11 -04:00
opencode-agent[bot] bad4599bf9 chore: generate 2026-04-28 01:50:04 +00:00
Kit Langton 892fd85ba7 fix(httpapi): preserve provider oauth authorize parity (#24703) 2026-04-27 21:48:50 -04:00
Kit Langton faca24d487 fix(httpapi): align session boolean query parsing (#24693) 2026-04-27 20:53:27 -04:00
Kit Langton c103202ad5 test(httpapi): cover session json parity (#24682) 2026-04-27 19:48:57 -04:00
Kit Langton ce78a4265d fix(session): remove compaction summary dividers (#24677) 2026-04-27 18:15:11 -04:00
Kit Langton c4a2353ac3 fix(session): omit undefined optional fields (#24676) 2026-04-27 17:50:09 -04:00
Kit Langton 576efed196 fix(httpapi): preserve optional session fields (#24671) 2026-04-27 21:38:28 +00:00