Skip to content

桌面端「返回首页」两处剩余文案:StudioAccessRequired 按钮与 AI 不可用提示改读「返回应用起始页」 #37207

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Follow-up to #37163 (PR #37204), part of #36107. These are two places in the same family that read "home" on desktop, where the target is the app's start page. The dev found them by reading the code; their reach has not been measured.

What

  1. StudioRoute.tsx's StudioAccessRequired shows 「Back to home」, but on desktop (≥768px) it goes to the app start page. fix(console): on a desktop the way-home controls name the app start page, and the pill drops its duplicate All apps row #37204 made BackToHomeButton, AiUnavailable's button and the product mark's aria-label read layout.appSwitcher.backToHome 「Back to app start page」 on desktop. Do the same here. This file is in PR feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's diff, so this item waits for feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 to land.
  2. console.ai.unavailableError (「…or head back home.」) disagrees with the button text on desktop. The fix needs a desktop variant key in all 11 locales, so check Clause-② again: an added key is yes (widening).

Done when

Not in scope

Two stale comments seen in passing: the runtime-config.ts hideSingleAppSwitcher note and an approvals.json checklist step. Fix them if they are touched anyway; they get no card of their own.

Activity

  1. added
    priority:p2
    pm:blocked
    domain:ui
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Addition to this card's "not in scope" stale-prose list, from the L1 of PR #37204 (7154277408, nit N1): docs/qa/platform-checklist/areas/studio-authoring.json:35 still names the product mark 「PRODUCT home (e.g. ObjectOS home)」 with no width qualifier. From 768 px up, the mark's accessible name is 「Back to app start page」. #37166 also rewrites that file, so whichever of #37166 and this card touches it last should add the width qualifier.

  3. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Claim: PM loop round (a4-C, resumed; the block cleared)
    Session: session_01QSeKYnagJvGbCtNg2PhvgW
    Account: os-justin
    Branch: claude/issue-37207-desktop-back-to-start-page
    Worktree: objectstack-issue-37207
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-C
    Epic: #36107 (part of)
    File surface: ui/apps/console/src/components/StudioRoute.tsx (StudioAccessRequired's back link, ~111), ui/packages/app-shell/src/console/ai/AiUnavailable.tsx (the console.ai.unavailableError sentence on desktop), ui/packages/i18n/src/locales/*.ts (one desktop variant key, all 11 locales), their tests, the stale-prose items the card lists only if touched anyway, .changeset/* (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: yes (widening) (an added i18n key, as the card says; the dev measures it)
    Metadata-protocol: none
    Responsibility: platform UI code in objectstack (two desktop texts still say "home" where the target is the app start page) | #37204 made the same change for BackToHomeButton, AiUnavailable's button and the product mark; these two were not covered | every desktop user who hits Studio access denied or AI unavailable; reached today
    Thread-read: 7154308207
    Premise: holds (on main 2d18ba8 after #37166 merged as fbb62e1: StudioRoute.tsx:111 still reads empty.appAccessDeniedHome 「Back to home」; console.ai.unavailableError still ends "head back home."; layout.appSwitcher.backToHome reads "Back to app start page")
    Serial constraints cleared: #37166 merged (the card's Blocked-by). In flight in this zone: PR #37249 (#37227) edits Home files and the locale packs. This card touches the locale packs too, on different keys; overlap-check before each push decides, and a textual conflict is stop-and-report.
    Prior rulings read: #37204's desktop/phone split (L1 7154277408); the card's not-in-scope note and its addition 7154308207.

  4. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 25, 2026
  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
    os-dev-report

    {
      "issue": 37207,
      "status": "done",
      "branch": "claude/issue-37207-desktop-back-to-start-page",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37340",
      "head": "51f74e6346",
      "session": "session_01QSeKYnagJvGbCtNg2PhvgW",
      "premise_still_valid": true,
      "summary": "Follows the #37204 split (usePhoneViewport, under 768 px is a phone). On a desktop, StudioAccessRequired's way-home link now reads layout.appSwitcher.backToHome ('Back to app start page'), and AiUnavailable's hasError sentence reads the new console.ai.unavailableErrorDesktop ('... try again, or go back to the app start page.'). A phone keeps empty.appAccessDeniedHome and console.ai.unavailableError. The new key is in all 11 locale packs (each translation reuses that pack's backToHome wording). No targets, props or exports change and no key is retired. Two existing pins that read the old text at jsdom's 1024 px (StudioRoute.test WAY_HOME, accessNotice-12035 wayHomeIn) now read the desktop wording. Draft PR opened with assignee os-justin (the claim's Account). Card assignee not touched.",
      "tests": "Built the closure first: pnpm --filter '@object-ui/console^...' build, VERDICT command-exit 0. Then, from ui/ at head 51f74e634: vitest run RequireAiSurface StudioRoute console-namespace-3546 all-locales-key-parity en-zh-key-parity AiChatPage, Test Files 44 passed (44), Tests 386 passed (386), VERDICT command-exit 0. Pins, each a top-level describe in its existing harness, desktop pin plus phone CONTROL: StudioRoute.test.tsx '/studio refused: the way home names where it goes, by viewport' (1280 px vs 375 px), and RequireAiSurface.test.tsx 'the unreachable-service sentence names where its way home goes, by viewport'. Ablation 1, via scripts/ablation-replace.mjs: StudioRoute.tsx desktop arm swapped to empty.appAccessDeniedHome (anchor x1->x0, blob eb1f53509ede->95423fd7baec). Result: Tests 8 failed | 12 passed (20), including the new desktop pin; the phone CONTROL stayed green. Restored: blob == HEAD (eb1f53509ede), git diff HEAD empty. Ablation 2: AiUnavailable.tsx unavailableErrorDesktop swapped to unavailableError (blob be8967064c9b->dada400011a4). Result: Tests 1 failed | 13 passed (14), the failure is the desktop pin. Restored: blob == HEAD (be8967064c9b), git diff HEAD empty. Neither ablation needed a build: both test files import the mutated source directly. Type-check of app-shell, console and i18n: VERDICT command-exit 0. Clause-② measured by importing each pack at base fbb62e1cc and at head: leaf keys +1 in every pack (en 5040->5041, zh-Hans 5040->5041, zh-Hant/ja/ko/de 5034->5035, fr/es/pt-BR 5191->5192, ru 5348->5349, ar 5662->5663). The new key is in 11 of 11 packs at head and 0 of 11 at base.",
      "gates": "ui i18n gates: check:i18n-keys EXIT=0 (5898/5898 literal keys resolve); check:i18n-drift EXIT=0 (1 key added, 0 en values changed; key-set parity belongs to all-locales-key-parity, which is green above); check:i18n-dead-keys EXIT=0. dispatch-gates --commands, re-derived after the changeset: 41 families. 40 run locally, every exit code captured before any pipe, all 40 exit 0. NOT MEASURED: pnpm --dir ui exec vitest run scripts/. The first run was SIGKILLed by the shared box's OOM killer; two lock retries (slot kept) hit queue-timeout exit 99 behind another session's full dogfood build+test (holder pid 31143). This diff edits no ui/scripts file. Declared narrowing; CI runs the suite. dispatch-gates --ran: 41 derived, 40 run, 1 UNRUN (that suite), exit 1 for that reason alone. overlap-check before each push: VERDICT clean exit 0 (origin/main dbc1765a24; #37249 shares the 11 locale packs and merges cleanly). CI on 51f74e6346 at report time: 17 pending, 5 skipped, 0 failed (in_progress).",
      "dogfood_battery": "n/a: no '!' in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3: git push (branch, 2 pushes; not REST); pr_create via scripts/pm/fleet-write/dispatch.mjs, POST pulls + assignees (#37340); this os-dev-report comment via scripts/pm/post-stamped.mjs, POST issues/37207/comments",
      "open_questions": [],
      "deviations": "The empty-branch probe push before any edit was refused by the session's auto-mode classifier, not by GitHub. The branch was first pushed after the first commit, behind a clean overlap-check. The harness attribution asks for a different PR footer and a model-named Co-Authored-By trailer. Per os-dev.md, the PR uses the session-URL footer and the commits carry the model-free trailer pair.",
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the card's stale-prose items (runtime-config.ts hideSingleAppSwitcher note, approvals.json, studio-authoring.json:35) are outside this diff and were not touched"
      ]
    }
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

    Delivered (2026-11-25T21:37Z): PR #37340 merged (2026-11-25T21:24Z) and closed this card through its Fixes #37207.

    On desktop (768 px and wider), both remaining "back home" phrasings now point to the app start page:

    • The StudioAccessRequired button, from StudioRoute.tsx.
    • The AI-unavailable error sentence: from 768 px up it uses the new key console.ai.unavailableErrorDesktop, added to all 11 locale packs. A phone keeps console.ai.unavailableError.

    Clause-②: yes (widening): one new i18n key, no retirements.

    The first merge-queue attempt failed on an unrelated AiChatPage.draftInMainArea-34610 navigation assertion. I judged that failure in 7174557923 and re-queued once. The second run went green.

    Nothing is left on this card; pm:dispatched removed.

  7. removed
    pm:dispatched
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions