Skip to content

Convert SessionRuntime interaction broker to TypeScript - #540

Merged
gandazgul merged 1 commit into
mainfrom
codex/ts-runtime-interactions
Nov 4, 2026
Merged

gandazgul merged 1 commit into
mainfrom
codex/ts-runtime-interactions

Conversation

@gandazgul

Copy link
Copy Markdown
Collaborator

Converts the HostedSession interaction broker to TypeScript without changing prompt handling, review authority, metadata, cancellation, remote/local answer races, or response normalization. Named request, option, response, adapter, and surface types stay with the implementation and derive interaction kinds/outcomes from the owning vocabulary. Updates all 64 consumers, three live references, and the JavaScript baseline.

Typed promise settlements remove the old race-result assertion. Native outcome assertions replace the existing any cast; opaque metadata and caught-error boundaries retain their existing contracts. The named option type preserves the original JSDoc compatibility with UI option records. No runtime guards or normalization rules are added. Errors and existing test assertions/cases remain unchanged.

Validation:

  • Frozen root/docs installation with Bun 1.4.3; initialized submodules are clean.
  • All 11 preliminary CI checks pass, including type checks, lint, language policy, documentation links, and Workspace build.
  • All 126 existing focused cases pass: 103 SessionRuntime, two Plan review conversation, 15 TUI interaction adapter, and six Plan review recovery cases. Case-count delta is zero.
  • Emitted runtime JavaScript AST matches the original module exactly; all 64 consumers match apart from native extension references.
  • Independent Standards, Spec, and Tests reviews are clear.
  • Full GitHub source and Golden CI required before merge.

@gandazgul gandazgul added auto:js-to-ts Automated JavaScript to TypeScript conversion auto:review Ready for auto code review labels Nov 4, 2026
@gandazgul
gandazgul merged commit 818be1f into main Nov 4, 2026
10 checks passed
@gandazgul
gandazgul deleted the codex/ts-runtime-interactions branch November 4, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto:js-to-ts Automated JavaScript to TypeScript conversion auto:review Ready for auto code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant