Skip to content

test: Task abort/status transitions (FB-14b) - #169

Merged
dirac-run merged 8 commits into
dirac-run:masterfrom
alexdim:fix/fb14b-task-coverage
Aug 12, 2026
Merged

test: Task abort/status transitions (FB-14b)#169
dirac-run merged 8 commits into
dirac-run:masterfrom
alexdim:fix/fb14b-task-coverage

Conversation

@alexdim

@alexdim alexdim commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What

FB-14b (test net for FB-15a): TaskAbort.test.ts covering Task.abortTask() status transitions (→ CANCELLING, delegation to lifecycleManager) via Object.create(Task.prototype) with stubbed deps.

Dependencies

Requires #166 (test-compilation unblock) — the test only runs after #166 merges. Stacked on it until then.

Verification

tsc clean; runs green once the FU-4 env fix (#166) is present.

Closes FB-14b (FIX-BACKLOG).

Alexandros Salapatas and others added 8 commits August 9, 2026 02:22
Node has node:sqlite at runtime but bundled @types/node lacks it;
declares the subset used by SymbolIndexDatabase (DatabaseSync:
prepare/exec/close; StatementSync: get/all/iterate/run).
Tests resolve 'vscode' to cli/src/vscode-shim.ts (paths alias), so the
LanguageModel API members must live there (a .d.ts augmentation never
merged under ts-node/unit-test resolution). Add LanguageModelChatSelector,
TextPart/ToolCallPart/ToolResultPart, ChatMessage/Role, Chat/ChatResponse/
RequestOptions, lm.selectChatModels as real minimal classes.
mocha harness redirects 'vscode' to src/test/vscode-mock.ts (require hook).
It had the LM part classes but not LanguageModelChatSelector, which
types.ts / state-keys / vscode-lm reference. Unblocks those tests.
send() returns { stream: AsyncIterable } but the constructor expects
AsyncIterable directly. Unwrap to .stream.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- augment @types/vscode with LM members so import("vscode") type-refs resolve.
- ts-node moduleResolution node (was Bundler, invalid for commonjs) so
  @core/@shared resolve via tsconfig-paths at runtime.
Unblocks bedrock/StateManager/context suites (FU-4).
@dirac-run

Copy link
Copy Markdown
Owner

should be good to merge after 166

@dirac-run dirac-run left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed after #166 merged. The effective diff is now only TaskAbort.test.ts; the tests correctly cover the CANCELLING transition, preservation of CANCELLED, and lifecycle delegation. Safe to merge, preferably before #170.

@dirac-run

Copy link
Copy Markdown
Owner

thanks!

@dirac-run
dirac-run merged commit e61c242 into dirac-run:master Aug 12, 2026
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.

2 participants