Repository navigation
fix(workbench): preserve inferred watchList stream type in createTerminals - #6641
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the
product(contracts/ui_types) CI TypeScript failure introduced onrust-previewby#6638:const opened = await host.subscribe('terminal', 'watchList', ...)scoped inside an innertry / finallyblock increateTerminals(products/maka/workbench/app/terminalState.ts) instead of pre-declaringlet opened: Stream<unknown> | null = null, preserving the strongly typed stream outcome generated bymaka-workbench --example ui_types.Verification
node scripts/ci.mjs run contracts(includingcargo run -p maka-workbench --example ui_types+tsc) — passednode scripts/ci.mjs run product— passednode scripts/ci.mjs check format,licenses,tooling-tests(217/217) — passedAI use
Select exactly one:
Tool(s) and scope: Antigravity — diagnosis of
ui_typesTypeScript failure, fix interminalState.ts, and localcontracts/productverification.Checklist
Does this PR entail a change in behavior?