Skip to content

feat(studio): implement workspace shell - #1869

Merged
samuv merged 17 commits into
plan/studio-workspace-shellfrom
impl/studio-workspace-shell
Sep 24, 2026
Merged

samuv merged 17 commits into
plan/studio-workspace-shellfrom
impl/studio-workspace-shell

Conversation

@samuv

@samuv samuv commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Tracking: #1844

Stage

Implementation candidate stacked on proposed Plan / Interface PR #1858. The Plan targets main, remains unmerged, and its current contract commit is 0dfbbaa4b5c4240671cb6f980b65a9cf49863658. Human approval of that Plan is the merge checkpoint for this implementation PR.

Implemented scope

  • Responsive workspace navigation and safe-area layout, with separate slots for global recovery and in-shell notices. Studio appearance: design tokens, palettes, typography, and shared controls #1843 owns final tokens and shared controls; Studio sign-in and recovery: OIDC popup, public status, and banners #1845 owns banner facts, copy, and recovery actions.
  • Same-origin, metadata-only global search with account-scoped inventories, a fresh authorization check before opening, HTTP cache bypass for private inventory requests, partial-failure reporting, and pointer, keyboard, touch, focus, and IME handling.
  • Branded not-found and unexpected-error routes with recovery controls.
  • Installable manifest and icons, without a service worker or an offline cold-start promise. The Studio deployment guide describes the loaded-shell offline boundary.

The seven interface categories match the proposed Plan: no gRPC/protobuf, exported Go API, tool schema, CLI/config, event/persistence, or server API change. The existing browser search authorization boundary and route compatibility remain in force.

Review follow-up

The review on this PR identified two search bugs and one dependency pinning issue. Commit 42c6484f0076cb9de562bc3f5a6cdba578d175b4 fixes them:

  • Space and digit IME candidate keyups no longer consume a subsequent distinct Enter. Unit and component regressions cover the sequence.
  • An inventory 401 closes search and clears account-scoped results, while the trigger and Ctrl+K can retry through a fresh session check. A regression covers both reopen paths and ensures old private results stay absent.
  • happy-dom is pinned exactly in the package and lockfile.

The review also called out incomplete AC1.2/AC4.2 banner and attempted-action behavior. #1845's Plan PR #1860 owns public status, banner facts/actions, and recovery of protected writes; its implementation PR #1871 is still separate. #1844 owns the shell placement and combined interaction evidence. The attempted-action connection-required outcome remains an explicit integration check before merge.

Verification

  • The review regressions failed on the old code. On the repaired head, all 39 focused search tests and task studio:check passed, including web/server lint, typecheck, 348 web tests, 129 server tests, and generated checks.
  • task studio:build, task site:build, strict acceptance trace, and the offline demo passed before the search-only repair. Plan PR docs(studio): plan workspace shell #1858 Doc validation passed after the main rebase.
  • Current-head PR CI passed the applicable Studio, Doc validation, site, lint, domain-model, and acceptance checks.
  • The full CI workflow run passed on exact head 42c6484f0076cb9de562bc3f5a6cdba578d175b4, including build, analysis, SDK/browser checks, all Go race shards, and macOS jobs. The PR performance gate also passed.

Before final acceptance

This PR remains open and does not close #1844.

@samuv
samuv added this pull request to stack #1870 September 24, 2026 11:13
@samuv samuv changed the title impl/studio workspace shell feat(studio): implement workspace shell Sep 24, 2026
@samuv samuv self-assigned this Sep 24, 2026
@samuv
samuv marked this pull request as ready for review September 24, 2026 12:24
@samuv
samuv force-pushed the impl/studio-workspace-shell branch from f088bfa to 6b192f2 Compare September 24, 2026 13:47
samuv and others added 16 commits September 24, 2026 15:50
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: mecatl <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: mecatl <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Preserve static help search when OIDC omits account, and keep dynamic inventories account-scoped. Handle observable pointer and touch IME completion and prevent duplicate result navigation.

Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Recheck the BFF session for every search open, isolate cached private inventory until identity is confirmed, and use local help during transport loss.

Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Bypass the browser cache for pre-open identity checks, retry inventory queries on each search open, and omit failed inventory data from results. Prove same-account sign-out cache eviction and partial results after a daemon inventory outage.

Signed-off-by: Samuele Verzi <[email protected]>

Co-Authored-By: OpenAI Codex <[email protected]>
Pass cache: no-store to all five authorized inventory queries so every palette open reaches the BFF after the fresh identity check. Exercise the real generated query client through Request construction and verify each endpoint receives the no-store mode.

Signed-off-by: Samuele Verzi <[email protected]>

Co-Authored-By: OpenAI Codex <[email protected]>
Keep cached inventory out of the visible search index while its on-open fetch is pending, and announce loading until refresh settles. Explain static-help mode accurately when the BFF session check fails while preserving the unknown-account prompt.

Signed-off-by: Samuele Verzi <[email protected]>

Co-Authored-By: OpenAI Codex <[email protected]>
@samuv
samuv force-pushed the impl/studio-workspace-shell branch from 6b192f2 to a6fd54b Compare September 24, 2026 13:50
@peppescg

Copy link
Copy Markdown
Contributor

Quick review. All five verify: vitest: locators exist, error pages render fixed text only, and no paths or private refs are exposed. Two medium issues:

  1. Med — IME commit via Space/digit swallows the next Enter (apps/web/src/features/search/search-keyboard.ts:40-42,62). After compositionend the guard waits for a commit key, but keyUp only clears that wait on Enter or an arrow key. In Pinyin or Japanese, a user who commits a candidate with Space or a digit has their next deliberate Enter ignored. This breaks AC2.5 ("a subsequent distinct Enter may choose a result"), and no test covers it.
  2. Med — accessExpired sticks after a single 401 (apps/web/src/features/search/global-search.tsx:184,289,445). If one inventory endpoint returns 401 while the auth re-check still says authenticated, the errored queries stay disabled while the palette is closed and never refetch. The search button and Ctrl+K are then dead until a reload. The test at global-search.test.tsx:503 asserts disabled === true, which pins this behaviour instead of catching it.

Minor:

  • happy-dom isn't pinned (apps/web/package.json:41): it's added as ^20.14.5 while every other dependency is exact.
  • AC1.2 / AC4.2 are only partly delivered. The signed-out GlobalStatusSlot is empty. The banner facts are deferred to Studio sign-in and recovery: OIDC popup, public status, and banners #1845, but AC4.2's "connection required" outcome for an attempted agent action has no owner here.

Clear account-scoped search results when an inventory returns 401, then allow the trigger or shortcut to retry after a fresh session check. Recognize Space and digit candidate keyups after composition end so a distinct Enter can select. Pin happy-dom to the resolved version.

Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
@samuv

samuv commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up on this review: commit 42c6484f0 addresses both medium findings and the dependency pin.

  • Space, legacy Spacebar, and digit candidate keyups after compositionend now leave a subsequent distinct Enter available for search selection. Unit and component regressions cover the sequence.
  • An inventory 401 closes search and clears account-scoped inventory results. The Search trigger and Ctrl+K can then retry through a fresh session check; the regression covers both paths and confirms old private results are absent.
  • happy-dom is pinned to 20.14.5 in the package and lockfile.

The focused search tests (39/39), task studio:check, current-head PR CI, full CI on this exact commit, and the PR performance gate passed.

The AC1.2/AC4.2 concern remains open for cross-stack integration. #1844 supplies the shell slots; #1845's Plan PR #1860 and implementation PR #1871 own connection/auth facts, banner actions, and protected-write recovery. The visible connection-required outcome for an attempted agent action and desktop/mobile interaction evidence are recorded as pre-merge acceptance work in this PR description.

@samuv
samuv merged commit b0a96d2 into main Sep 24, 2026
64 checks passed
@samuv
samuv deleted the impl/studio-workspace-shell branch September 24, 2026 14:46
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.

Studio shell: navigation, search, error pages, and installable app assets

2 participants