Skip to content

Upgrade dependencies to latest and fix resulting breakages#210

Merged
sbroenne merged 3 commits into
mainfrom
upgrade-dependencies
Jun 9, 2026
Merged

Upgrade dependencies to latest and fix resulting breakages#210
sbroenne merged 3 commits into
mainfrom
upgrade-dependencies

Conversation

@sbroenne

@sbroenne sbroenne commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Upgrades all dependencies to their latest versions and fixes the breakages introduced by the major bumps (TypeScript 6, @github/copilot-sdk 1.0, etc.), then repairs the Playwright UI suite.

Changes

Dependency upgrade (8f4b42c)

  • Bumped all dependencies to latest via npm-check-updates.
  • Kept vscode-jsonrpc at ^8.2.1 - v9 drops the ./node.js exports subpath that @github/copilot-sdk (requires ^8.2.1) imports.
  • TypeScript 6: removed deprecated baseUrl (path mapping to ./src/*); added src/types/css.d.ts ambient module for CSS side-effect imports; removed now-unnecessary type assertions.
  • copilot-sdk 1.0: Tool.handler now optional (guarded in registerTools); ToolBinaryResult.type narrowed to 'image' | 'resource'; remapped the changed exit_plan_mode selectedAction enum; satisfies Tool on the Word planner tool.

UI test fixes (e043d79)

  • Refreshed stale hardcoded model ids in tests-ui/fixtures.ts (e.g. claude-sonnet-4 to claude-sonnet-4.6, gpt-4.1 to gpt-5.4).
  • Restored plugin-owned agents: SDK 1.0 no longer auto-loads marketplace-installed CLI plugins for SDK-created sessions, even in copilot-cli mode. Added getInstalledOfficePluginDirectories() and wired pluginDirectories into the proxy's createSession so agents like office-excel:excel resolve again.

Proxy warning (23b931d)

  • The proxy now logs a clear warning when an agent is requested but no Office plugin directories were resolved, instead of the SDK's cryptic "Custom agent not found".

Testing

  • 537 unit + 545 integration tests pass
  • 44/44 Playwright UI tests pass
  • E2E suites (npm run test:e2e*) require real Office Desktop hosts - not run in this environment.

Scribe and others added 3 commits June 9, 2026 15:21
Bump all dependencies to latest, including major upgrades: TypeScript 6, @github/copilot-sdk 1.0, lucide-react 1.x, electron 42, vite-plugin-static-copy 4, lint-staged 17.

Adapt to breaking changes:
- TS6: remove deprecated baseUrl (use ./src/* path), add *.css ambient module declaration, drop now-unnecessary type assertions flagged by typescript-eslint.
- copilot-sdk 1.0: handler is now optional on Tool (guard in registerTools); ToolBinaryResult.type narrowed to 'image' | 'resource'; exit_plan_mode selectedAction enum changed (map exit_only/autopilot_fleet); use 'satisfies Tool' for submitDocumentPlanTool and align its test to the 1-arg handler.
- Keep vscode-jsonrpc at ^8.2.1: v9 drops the /node.js subpath that @github/copilot-sdk (requires ^8.2.1) imports.

All 537 unit + 545 integration tests pass; typecheck, lint, and build are clean.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Two upgrade-related breakages surfaced in the Playwright UI suite:

1. SDK 1.0 no longer auto-discovers marketplace-installed CLI plugins for SDK-created sessions, so the host-default agent (office-excel:excel, etc.) failed session.create with 'Custom agent not found'. The proxy now resolves the installed Office plugin directories and passes them as createSession({ pluginDirectories }), which re-loads the plugin-owned agents. Added getInstalledOfficePluginDirectories() helper (honors COPILOT_HOME) plus its .d.mts types and integration tests.

2. The @github/copilot CLI bump dropped the old model ids the UI fixtures hardcoded (claude-sonnet-4, gpt-4.1, gemini-2.5-pro). Updated tests-ui/fixtures.ts and settings-dialog.spec.ts to current ids (claude-sonnet-4.6, gpt-5.4, gemini-3.1-pro-preview).

All 44 UI, 545 integration, and 537 unit tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SDK >=1.0 only loads plugin-owned agents from explicit pluginDirectories.
When an agent is requested but no Office plugin directories were resolved,
createSession fails with a cryptic 'Custom agent not found'. Surface the
real cause with an upfront proxy warning pointing at the startup bootstrap
and COPILOT_HOME.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sbroenne sbroenne merged commit 50d4b08 into main Jun 9, 2026
1 check passed
@sbroenne sbroenne deleted the upgrade-dependencies branch June 9, 2026 14:31
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