Skip to content

vscode: default Tower view container to the secondary side bar (gated on Cursor base >= 1.106 + engines bump) #1763

Closed

Description

@amrmelsayed

Proposal

Move the Tower view container (codev-tower, added by #1566) from contributes.viewsContainers.activitybar to contributes.viewsContainers.secondarySidebar, so Tower opens in the secondary side bar (right) by default in every VS Code build, including downstream forks that bundle the extension. Users who have already dragged it elsewhere keep their placement through VS Code's per-user view customization persistence.

Origin: a correction routed from a downstream fork's architect via main on 2026-10-04. The fork cannot set a desktop default layout on its side and declines to fork the manifest, so the only route to default-right everywhere is our manifest.

Gate (do not start until both hold)

  1. Cursor's bundled VS Code base is >= 1.106. Verify by reading vscodeVersion from Cursor's product.json (Cursor.app/Contents/Resources/app/product.json), not from memory. Our engines.vscode is deliberately pinned to Cursor's base.
  2. Bump engines.vscode to ^1.106.0 and @types/vscode to ~1.106.0 in the same change, after confirming Antigravity and Kiro bases are also >= 1.106.

Why 1.106 and not the fork's 1.127 attestation or our 1.105 floor (verified with gh api repos/microsoft/vscode/compare/<tag>...<sha>):

  • 03baef100 (2025-08-25, "Support registering views to the secondary side bar", proposed/gated) is contained in 1.104.0 and 1.105.0.
  • c1d7cfd70 (2025-10-27, "finalize secondary side bar view contribution point") is not in 1.105.0 and is in 1.106.0. The 1.106 release notes list the secondarySidebar contribution point under Extension Authoring.

Severity at our floor is worse than silent loss. Tag-by-tag reading of viewsExtensionPoint.ts by the fork's architect (relayed by main, 2026-10-04):

  • <= 1.103: key absent; validation warning, container silently not registered.
  • 1.104.0 and 1.105.0: key present but gated. checkProposedApiEnabled(description, 'contribSecondarySidebar') throws for an extension without the proposal enabled, and the throw escapes the viewsContainers handler for the whole batch, so it can take neighbouring containers down with it. On our exact ^1.105.0 floor, shipping the key risks the main Codev container too, not just Tower.
  • 1.106.0 onward: gate removed (c1d7cfd70; proposal dropped in bump distro removing proposed api microsoft/vscode#275516), verified ungated at every tag through 1.126.0 and in the fork's imports through 1.138.0.

The fork attests the key only at >= 1.127 because that is where their snapshots start; the real floor is 1.106.

Why the floor is 1.105 today (commit 652fe2e, 2026-05-13): it was lowered from ^1.110.0 to admit forks on older bases at the time: Cursor 3.3.30 on VS Code 1.105.1 (the tightest), Antigravity 1.107.0 on 1.107.0, AWS Kiro 0.12.184 on 1.107.1, Windsurf on 1.110+. @types/vscode was pinned ~1.105.0 in the same commit so tsc cannot silently adopt a newer API. Re-check all four hosts, not only Cursor, before raising the floor; Cursor was the binding one in May and may no longer be.

Guard (required in the same change, and acceptable to land earlier on its own)

A manifest test in apps/vscode/src/__tests__/ asserting: if contributes.viewsContainers.secondarySidebar exists in package.json, then the minimum version in engines.vscode is >= 1.106.0. Cheap package.json assertion; fails CI on an early move and turns the throwing-gate hazard from reviewer discipline into a structural impossibility. The same test should assert @types/vscode tilde-tracks the engines floor, preserving the 652fe2e discipline.

Change when the gate holds

  • apps/vscode/package.json: move the codev-tower entry from viewsContainers.activitybar to viewsContainers.secondarySidebar (same id, title, icon); bump engines.vscode to ^1.106.0.
  • Verify in the development host on 1.106 and on the current stable: Tower appears in the secondary side bar by default; dragging it to the primary side bar persists across reload.
  • Release notes line: "Tower now opens in the secondary side bar by default. If you had moved it, your placement is kept."
  • No change to any view id, command, or keybinding; vscode: Tower sidebar — cross-workspace navigation hub (machine-wide attention, switch, activate on demand) #1566's views are unaffected.

Out of scope

  • Contributing the container twice (one id can live in one container; a duplicate would be an ambiguous affordance).
  • Any fork-side manifest or layout change.

Refs: #1566 (Tower sidebar hub, in flight; ships with the container on the left), #1563 (agent cycling order, unaffected).

Activity

  1. added
    area/vscode
    on Oct 4, 2026
  2. amrmelsayed commented on Oct 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    Gate item 1 verified by the owner, first-hand (2026-10-05, Cursor About dialog, pasted to the main architect):

    Cursor 3.22.12 · VS Code Extension API: 1.128.0 · commit 3a9297436 · build 2026-09-26

    Cursor's base is 1.128.0, well above the 1.106 this issue needs. #1608 (bump the engine floor to ^1.128) already carries the same premise from an earlier About-dialog check on 2026-09-04 and is the vehicle for the engines bump; #1613 (stable 1.106–1.128 UX APIs) rides on #1608.

    Remaining before this issue can start: an engines bump >= ^1.106.0 landing on main. Whether that is #1608's full ^1.128 or an interim ^1.106 depends on re-checking the other hosts from the 652fe2e table (Antigravity 1.107, Kiro 1.107 in May 2026); they cannot have regressed below 1.106, so the interim bump is safe regardless. Sequencing recommendation routed to the owner by the vscode architect seat.

    Cross-links: #1608 (engine floor), #1613 (API adoption).

  3. amrmelsayed commented on Oct 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    Correction (vscode architect, 2026-10-05): the manifest guard test stays HERE after all. The #1608 builder spawned unregistered (#1712 class) and cannot receive a lane brief, so #1608 ships the floor bump only. This issue carries the guard test alongside the container move.

  4. amrmelsayed commented on Oct 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    Guard wording fix (vscode architect, 2026-10-05): the typings half of the guard must assert @types/vscode version <= the engines.vscode floor, not that it tilde-tracks the floor literally. The npm registry has gaps (no 1.128.x; 1.125.0 then 1.134.0), so the nearest publish at or below the floor is the correct pin.

  5. amrmelsayed commented on Oct 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    Closed as absorbed by #1566 (vscode architect, 2026-10-05). With the engine floor at ^1.128 (#1608, PR #1764) the throwing-gate hazard that made this a separate, gated follow-up is moot: no host below 1.128 can load the extension. The pir-1566 builder moved the codev-tower container to viewsContainers.secondarySidebar at e6074f6 and the owner confirmed the right-side default directly ("keep it on the right ... I have tested it", 2026-10-05). The residual guard test from this issue (secondarySidebar present => engines >= 1.106; @types/vscode <= engines floor) rides in #1566 as well. Release-notes line for the move lands with 1566's PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions