Skip to content

fix(workbench): preserve inferred watchList stream type in createTerminals - #6641

Merged
M4n5ter merged 1 commit into
rust-previewfrom
fix/workbench-terminal-stream-type
Nov 5, 2026
Merged

M4n5ter merged 1 commit into
rust-previewfrom
fix/workbench-terminal-stream-type

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

Fix the product (contracts / ui_types) CI TypeScript failure introduced on rust-preview by #6638:

  • Keep const opened = await host.subscribe('terminal', 'watchList', ...) scoped inside an inner try / finally block in createTerminals (products/maka/workbench/app/terminalState.ts) instead of pre-declaring let opened: Stream<unknown> | null = null, preserving the strongly typed stream outcome generated by maka-workbench --example ui_types.

Verification

  • node scripts/ci.mjs run contracts (including cargo run -p maka-workbench --example ui_types + tsc) — passed
  • node scripts/ci.mjs run product — passed
  • node scripts/ci.mjs check format, licenses, tooling-tests (217/217) — passed

AI use

Select exactly one:

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Antigravity — diagnosis of ui_types TypeScript failure, fix in terminalState.ts, and local contracts / product verification.

Checklist

  • Tests cover the change and fail without it
  • Format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

…inals

Keep opened = await host.subscribe('terminal', 'watchList', ...) scoped inside an inner try/finally so TypeScript retains the generated UiTypes outcome type instead of widening to Stream<unknown>.

Generated-by: Antigravity
@M4n5ter
M4n5ter merged commit a98b7d4 into rust-preview Nov 5, 2026
1 check passed
@M4n5ter
M4n5ter deleted the fix/workbench-terminal-stream-type branch November 5, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant