Skip to content

fix(console): on a desktop the Studio refusal and the AI-unreachable sentence name the app start page - #37340

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37207-desktop-back-to-start-page
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-37207-desktop-back-to-start-page

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Fixes #37207

Clause-②: yes (widening) — one new published language-pack key, console.ai.unavailableErrorDesktop, in all eleven packs
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:桌面端无权进入 Studio 时的「返回首页」按钮改为「返回应用起始页」;AI 服务连不上时的提示句末尾也从「返回首页」改为「返回应用起始页」,与下方按钮一致;手机端不变。
  • 为什么做:属于「去掉顶栏和平台首页那一层」专题的收尾,补上上一轮同类改动没覆盖到的两处文字。
  • 出错会怎样:最坏是某种语言的提示句读起来不顺,跳转目标没有任何改动;可直接撤回。
  • 要你做什么:无。

What changes

Measured first, at origin/main fbb62e1 (after #37166 landed): StudioRoute.tsx StudioAccessRequired read empty.appAccessDeniedHome 「Back to home」, and console.ai.unavailableError ended "or head back home." on every width. This follows #37204's desktop/phone split (usePhoneViewport, under 768 px is a phone).

  • ui/apps/console/src/components/StudioRoute.tsx: the Studio refusal's way-home link reads layout.appSwitcher.backToHome 「Back to app start page」 from 768 px up, and empty.appAccessDeniedHome 「Back to home」 on a phone. usePhoneViewport comes from the @object-ui/app-shell barrel, which already exports it. The link target (useHomePath()) is unchanged.
  • ui/packages/app-shell/src/console/ai/AiUnavailable.tsx: with hasError, the sentence reads the new console.ai.unavailableErrorDesktop from 768 px up ("Couldn't reach the AI service. It may be temporarily offline — try again, or go back to the app start page."). A phone keeps console.ai.unavailableError. It now names the same place as the button under it.
  • @object-ui/i18n: console.ai.unavailableErrorDesktop added once in each of the 11 packs. Each translation reuses that pack's own layout.appSwitcher.backToHome wording for "app start page" (zh-Hans 返回应用起始页). No key removed or renamed.

Clause-② measured: leaf keys per pack, base fbb62e1 → head, read by importing each pack file: 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 present in 11 of 11 packs and absent from all 11 at base. Only this one key is added. Props, exports and targets are unchanged.

Read first, by risk:

  1. ui/packages/app-shell/src/console/ai/AiUnavailable.tsx: the nested phone ternary inside hasError.
  2. ui/apps/console/src/components/StudioRoute.tsx: the link label ternary.
  3. ui/packages/i18n/src/locales/de.ts (and the other non-en packs): the translated sentence.

Two-minute check: at a desktop width, sign in as a user without studio.access and open /studio. The button reads 「Back to app start page」. Narrow the window under 768 px and it reads 「Back to home」.

Tests

One pin each, at desktop width, with the phone as the CONTROL. Each is a new top-level describe in the surface's existing harness:

  • Studio refusal: StudioRoute.test.tsx "/studio refused: the way home names where it goes, by viewport". At 1280 px the link is 「Back to app start page」 and no 「Back to home」 link exists. CONTROL at 375 px: 「Back to home」.
  • AI unreachable: RequireAiSurface.test.tsx "the unreachable-service sentence names where its way home goes, by viewport". It renders AiUnavailable with hasError. Desktop: console.ai.unavailableErrorDesktop, not console.ai.unavailableError. CONTROL on a phone: the reverse.

Existing pins moved to the desktop wording, because jsdom's window is 1024 px: StudioRoute.test.tsx WAY_HOME, and StudioRoute.accessNotice-12035.test.tsx wayHomeIn (now reads layout.appSwitcher.backToHome from each pack).

Affected suites (vitest, from ui/), head 51f74e6
pnpm exec vitest run --maxWorkers=2 RequireAiSurface StudioRoute console-namespace-3546 all-locales-key-parity en-zh-key-parity AiChatPage
 Test Files  44 passed (44)
      Tests  386 passed (386)
os-verify-lock: VERDICT command-exit 0
Ablations (one-shot, restored to the HEAD blob)

Studio refusal. In StudioRoute.tsx, node scripts/ablation-replace.mjs swapped the desktop arm's layout.appSwitcher.backToHome for empty.appAccessDeniedHome (anchor x1 -> x0, blob eb1f53509ede -> 95423fd7baec):

× on a desktop, where home is an app's start page, it reads as the app pill's row does
(+ 7 existing desktop refusal cases that read WAY_HOME)
Tests  8 failed | 12 passed (20)
ablation-replace: ok restored: blob == HEAD (eb1f53509ede) and `git diff HEAD` is empty

The phone CONTROL stayed green.

AI unreachable. In AiUnavailable.tsx, the swap was console.ai.unavailableErrorDesktop → console.ai.unavailableError (anchor x1 -> x0, blob be8967064c9b -> dada400011a4):

× on a desktop, where the button opens an app's start page, the sentence says so
Tests  1 failed | 13 passed (14)
ablation-replace: ok restored: blob == HEAD (be8967064c9b) and `git diff HEAD` is empty

Neither ablation needed a build step: both test files import the mutated source directly (console's own file; app-shell by relative path).

Type-check, i18n gates, derived gates
pnpm --filter '@object-ui/console^...' build   VERDICT command-exit 0
pnpm --filter @object-ui/app-shell --filter @object-ui/console --filter @object-ui/i18n run type-check   VERDICT command-exit 0
ui: check:i18n-keys EXIT=0 (5898/5898 literal keys resolve) · check:i18n-drift EXIT=0 (1 key added, 0 en values changed) · check:i18n-dead-keys EXIT=0
node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 (origin/main; #37249 shares the 11 locale packs and merges cleanly)
dispatch-gates --commands (after the changeset): 41 derived families; 40 run locally, all 40 exit 0
NOT MEASURED: pnpm --dir ui exec vitest run scripts/ (the ui scripts/ suite). The first run was SIGKILLed by the
  shared box's OOM killer; two lock retries got queue-timeout (exit 99) behind another session's full dogfood run.
  This diff edits no ui/scripts file. CI runs the suite.
dispatch-gates --ran: 41 derived, 40 run, 1 UNRUN (the line above)

Acceptance notes

Verification

Local: affected suites, both ablations, type-check of the three touched packages, the ui i18n gates, the derived gate families. CI owns the full farm.


Generated by Claude Code

…sentence name the app start page

Claude-Session: https://claude.ai/code/session_01QSeKYnagJvGbCtNg2PhvgW
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 25, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Final green head for L1 and same-head contract review (2026-11-25T19:26Z): 51f74e6346.

  • Checks at this head: 45 success, 13 skipped (all 13 expected per check-expected-skips, exit 0), 0 failed, 0 pending. mergeable_state: clean. CI covers pnpm --dir ui exec vitest run scripts/, which was NOT MEASURED locally (OOM kill, then lock queue timeouts).
  • Size: 17 files, +123 / −11; Fixes #37207.
  • Declaration: Clause-②: yes (widening): one new published @object-ui/i18n key, console.ai.unavailableErrorDesktop, in all 11 packs (measured at base and head: +1 leaf key per pack, 0 of 11 at base, 11 of 11 at head). Metadata-protocol: none. No key is retired, and no export, prop or target changes.
  • What it does: this follows fix(console): on a desktop the way-home controls name the app start page, and the pill drops its duplicate All apps row #37204's phone/desktop split (usePhoneViewport, under 768 px is a phone). On a desktop, StudioAccessRequired's way-home link reads layout.appSwitcher.backToHome 「Back to app start page」. AiUnavailable's error sentence reads the new key ("…try again, or go back to the app start page."). A phone keeps empty.appAccessDeniedHome and console.ai.unavailableError. Two existing pins that read the old text at jsdom's 1024 px now read the desktop wording.
  • Evidence: new pins in StudioRoute.test.tsx (1280 px vs 375 px) and RequireAiSurface.test.tsx, each with a phone control. Ablations turn the desktop pins red (8 failed and 1 failed) with the phone controls green, and the files were restored to the HEAD blob. 44 test files passed; app-shell, console and i18n type-check exit 0; check:i18n-keys, -drift and -dead-keys exit 0.
  • Overlap: overlap-check VERDICT clean (fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 shares the 11 locale packs and merges cleanly).
  • Not touched: the card's stale-prose items (runtime-config.ts, approvals.json, studio-authoring.json), which this diff does not reach.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 51f74e6346188eaf35c209d02638a10d3283a363 · 2026-11-25T19:46Z

Read against GitHub and the committed tree at this head, not against the report. Card #37207, claim 7169315159, report 7171598869, PR #37340 (draft, base main, author objectstack-fleet[bot], 2 commits, 17 files, +123/−11).

  • Shape and card relation: Fixes #37207 is on the first line, and no closing keyword sits near any other card number (l1-face: CLEAN, 13 of 13 items). Merging delivers the whole card. On a desktop, StudioAccessRequired's link reads layout.appSwitcher.backToHome 「Back to app start page」, and AiUnavailable's hasError sentence reads the new console.ai.unavailableErrorDesktop. A phone (usePhoneViewport, under 768 px) keeps empty.appAccessDeniedHome and console.ai.unavailableError. The link target useHomePath() and onHome are unchanged. There is one pin per surface, and the key is in all 11 packs. The card's not-in-scope stale prose is untouched, as the card allows. This is the leftover "home" wording after feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 removed the Studio home: at merge-base fbb62e1cc (feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166's merge), StudioRoute.tsx still read empty.appAccessDeniedHome.
  • Scope: all 17 paths are inside the claim's declared file surface: StudioRoute.tsx, AiUnavailable.tsx, the 11 locale packs, three test files and one changeset. There is no content/docs/releases/ path and no governed path, so the PR is neither Tier H nor Tier S. 134 changed lines, under the 3,000 line.
  • Locale packs, main → head: I imported every pack at merge-base fbb62e1cc, head, current origin/main 68250f64d6 and the merge-tree of head into main, and compared leaf-key sets. In each of the 11 packs: base → head adds console.ai.unavailableErrorDesktop and removes nothing (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). main → merged gives the same +1/−0. The key is in 0 of 11 packs at base and 11 of 11 at head. Placeholders are consistent: neither the new key nor its sibling console.ai.unavailableError carries an interpolation token in any pack. Every locale hunk is a pure addition, so no existing value changed. Each translation reuses its pack's own layout.appSwitcher.backToHome wording (zh-Hans 「返回应用起始页」, checked in all 11).
  • Pins, own run: throwaway worktree at this head, built the non-ui closure of @object-ui/console with OS_SKIP_DTS=1, ran under os-verify-lock. Two earlier attempts resolved no imports (no dist) and ran 0 tests. I discarded both as vacuous; they are not counted.
    • GREEN at head: StudioRoute.test.tsx + StudioRoute.accessNotice-12035.test.tsx + RequireAiSurface.test.tsx → Test Files 3 passed, Tests 58 passed (58).
    • Ablation 1: in StudioRoute.tsx, the desktop arm layout.appSwitcher.backToHome was swapped to empty.appAccessDeniedHome (blob eb1f53509e → 95423fd7ba). Result: Tests 19 failed, 25 passed (44). That is the 8 StudioRoute reds the PR reports, the new desktop pin among them, plus 11 accessNotice per-language reds the PR did not report. The phone CONTROL stayed green. Restored: blob equals HEAD eb1f53509e.
    • Ablation 2: in AiUnavailable.tsx, console.ai.unavailableErrorDesktop was swapped to console.ai.unavailableError (blob be8967064c → dada400011). Result: Tests 1 failed, 13 passed (14), and the failure is the desktop pin. The phone CONTROL stayed green. Restored: blob equals HEAD be8967064c. The final worktree status was empty.
    • CI at this head ran the same three files green: RequireAiSurface 14, StudioRoute 20, accessNotice 24.
  • Check-runs at this head: 58 runs, 45 success, 13 skipped, 0 other. check-expected-skips was run on a roster byte-identical to main's tip and returned OK, exit 0: all 13 skips are on the roster (Build Core, Test Core shards and the like are path-filtered on a ui-only diff). Lint & Repo Gates and TypeScript Type Check are success. Every required context that runs on a PR is success. Build Core is the expected path-filter skip, and the queue build widens it.
  • The dev's unrun suite (vitest scripts/ under ui, OOM-killed locally): covered by CI. Plan Test UI shards at this head ran mode=full with 16 of 16 shards and 7164 test files, because @object-ui/i18n is affected and a root setup file imports it. That set includes scripts/**/*.test.ts, and every Test UI shard is success. I accept this as a declared deviation.
  • Merge: in a throwaway bare clone with no merge driver registered, both commits were fetched, and git merge-tree --write-tree of head into origin/main 68250f64d6 exits 0. None of the PR's paths is routed merge=os-regen. fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 (head 7e70756fdd) shares exactly the 11 locale packs. head × fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 exits 0, and main + head + fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 exits 0. In that three-way tree, the new key is present once in each of the 11 packs. fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 removes only Home build-entry keys (buildWithAI, welcomeAdminDescription, the 「Build an app」 title), so every key this PR reads survives (backToHome, appAccessDeniedHome, unavailableError, unavailableHome).
  • K: landing-k.mjs --pr 37340 exits 3 (CAN'T ANSWER). The last green PR run (45679972228) ran no Test Core shard or planner on this ui-only diff, so no Affected-set diff base was printed. K is therefore NOT MEASURED by the rule's reader. Proxy: first-parent count from merge-base fbb62e1cc to origin/main 68250f64d6 is 8. That is an upper bound, because the PR run's base is no older than the merge-base, so K is below 15.
    • Locale leg: no translations/ pack was added on main since the merge-base. Quiet.
    • Shared-budget leg: the PR touches the input of the ui eager-closure budget book (ui/packages/i18n/src/locales/en.ts). Main since the merge-base touches neither that input nor ui/scripts/check-eager-closure-budget.mjs. Quiet today; see N3.
  • Claim line: readClause2Line on the card's newest Claim: (7169315159) reads declared / yes / widening. The PR body reads the same, and both read Metadata-protocol: none.
  • Changeset and 维护者速读: I checked the changeset sentence by sentence against the diff. Its claims are true: the button wording, zh 「返回应用起始页」, that the sentence sits on the /ai screen (AiChatPage renders AiUnavailable with hasError when the agent catalog fails), "in every language", that the phone keeps both old texts, and "no targets / props / exports change" (the app-shell barrel is untouched and AiUnavailable's props are unchanged). The level is patch on @object-ui/console, @object-ui/app-shell and @object-ui/i18n. That is right: Metadata-protocol: none takes patch, and a non-protocol widening ships patch (AGENTS.md Post-Task Checklist step 3). app-shell is private but versioned (privatePackages.version: true). Check Changeset is success. All four lines of the 速读 are accurate: what users see, why (epic 专题:去掉顶栏和平台首页那一层——登录直接进应用,全局入口进左侧菜单,侧栏第一项是首页(分三个阶段,十二项) #36107), the worst case (wording only, no target change), and 「要你做什么:无」. No governed path is touched, so no human approval is owed.

No must-fix, no should-fix.

  • N1 — Out-of-diff stale prose, left as the card allows but orphaned once Fixes closes the card: docs/qa/platform-checklist/areas/studio-authoring.json:35 on origin/main still names 「PRODUCT home」 with no width qualifier (card comment 7154308207). It also still walks through the Studio landing 「Studio home」 that feat(studio): remove the Studio home; /studio opens the last package or Setup > Packages #37166 removed. The card says this item gets no card of its own. The zone decides whether the docs/qa line rides a later PR on that file.

  • N2 — The PR's ablation evidence undercounts in a safe direction. With the accessNotice harness included, ablation 1 reds 19 cases, not 8. Nothing to change.

  • N3 — K is not readable by landing-k on this ui-only diff (exit 3). The proxy reads 8, so no merge is owed now. But fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 also edits ui/packages/i18n/src/locales/en.ts, the input of the eager-closure budget book. If fix(app-shell)!: Home no longer offers Build with AI or Build an app #37249 lands first, the shared-budget leg trips at any K: merge main and wait for a green re-run before arming.

  • Landing: the zone (a4-C) lands it. Before arming: TIER_DEFAULT PASS record on this head (record.md, Served-tier: TIER_DEFAULT, Head-sha 51f74e6346188eaf35c209d02638a10d3283a363); re-read checks on the then-current head; merge main first if K ≥ 15 or if N3's leg has tripped.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 51f74e6346188eaf35c209d02638a10d3283a363
Local-runs: probe — the pins at this head plus two one-shot ablations, run in a throwaway worktree under os-verify-lock (green 58 of 58; ablation reds 19 and 1; both files restored to their HEAD blobs)

Face: declaration. The review is owed by the Clause-②: yes (widening) line alone. The diff touches no packages/spec/src/**, no governed path and no narrowing declaration, so the tier is TIER_DEFAULT and the record carries no ④.

① Derived judgments

  • Clause-②: yes (widening) is right. @object-ui/i18n is published: private is unset, and files ships dist. Its entry exports en, and TranslationKeys = typeof en, so every key of the en pack is a published key. The diff adds exactly one key, console.ai.unavailableErrorDesktop, to each of the 11 packs. I checked this by importing the packs: leaf keys go +1/−0 per pack from base fbb62e1cc to head, and the same from origin/main 68250f64d6 to the merged tree. The key is in 0 of 11 packs at base and 11 of 11 at head.
  • Nothing narrows. No key is removed or renamed, and every locale hunk is a pure addition, so no existing value changed. The @object-ui/app-shell barrel is not in the diff. AiUnavailable's props are unchanged, and StudioAccessRequired is module-internal. Link targets (useHomePath(), onHome) are unchanged.
  • Placeholders are consistent: the new key and its sibling console.ai.unavailableError carry no interpolation token in any of the 11 packs.
  • Metadata-protocol: none is right. Nothing an author writes in metadata changes; this is console wording and a language-pack key.
  • The newest card Claim: (7169315159) through readClause2Line reads declared / yes / widening. The PR body and the changeset body declare the same. Both carry Metadata-protocol: none.

② Semver level

  • patch on @object-ui/console, @object-ui/app-shell and @object-ui/i18n is right. Kind none takes patch, and a non-protocol widening ships patch (AGENTS.md Post-Task Checklist step 3). No minor is owed and no major is reachable.
  • @object-ui/console and @object-ui/i18n sit in the fixed group with @objectstack/console and @objectstack/service-i18n, so the group moves at patch. @object-ui/app-shell is private and versioned (privatePackages.version: true), the normal precedent. Check Changeset is success at this head.

③ Boundary flags

  • open_questions is empty.
  • Deviations, each answered:
    • The empty-branch probe push was refused by the session classifier. That is benign: the first push followed a commit and a clean overlap-check.
    • The commit trailers follow os-dev.md over the harness attribution: model-free trailer pair, session-URL PR footer.
    • The ui vitest scripts/ suite was unrun locally (OOM). CI covered it: Plan Test UI shards ran mode=full with 7164 files, which include scripts/**/*.test.ts, and all 16 Test UI shards are success.
  • Out-of-scope stale prose was left untouched, as the card allows. The studio-authoring.json:35 residue is noted in the L1 (N1).
  • The PR author is objectstack-fleet[bot]; no off-relay write.
  • SQL push-down: not applicable. The diff is UI wording and a language-pack key, with no data access, id materialisation or join.
  • CI at this head: 45 success, 13 skipped, 0 other. All 13 skips are on main's roster (check-expected-skips exit 0).

④ Design judgment

Not owed. The declaration face carries no ④; only the schema, rules and narrowing faces do. No hits file is in this diff.

Implemented-by: claude/issue-37207-desktop-back-to-start-page
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Landing (2026-11-25T19:49Z): head 51f74e6346, on the seat's L1 ACCEPT 7172773137 and the same-head contract review PASS 7172784936 (TIER_DEFAULT, Clause-②: yes (widening)).

Probe Reading
check-governed-merges.mjs --pr 37340 NOT governed
Check-runs at this head 45 success · 13 expected skip (check-expected-skips exit 0) · 0 failed
Landing K 10 first-parent commits on main since merge base fbb62e1cc (landing-k could not answer: no Test Core shard ran on this UI-only PR); under 15, and no main commit since the base touches a locale pack or the eager-closure budget script

There is no narrowing arm, so no maintainer gate applies. #37249 (with the maintainer) also edits en.ts. It has not merged at this reading, so the seat's condition (merge main and wait for green if #37249 lands first) does not apply. If #37249 merges before this one leaves the queue, the queue's own build runs on the merged tree.

State change: ready for review, and auto-merge armed. On MERGED, #37207 closes by Fixes #37207.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 19:49
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45689095984 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test UI (13/16) — 失败步骤: Run the ui tests (shard 13/16)

    × a page draft → that page: a card's Preview moves the main area, in draft mode 1237ms
    FAIL   dom  packages/app-shell/src/console/ai/__tests__/AiChatPage.draftInMainArea-34610.test.tsx > the build shows its app in the main area (objectstack#34610) > a page draft → that page: a card's Pr
      ↳ 失败原因: AssertionError: expected '/ai/build/conv-1' to be '/apps/app.k9/page/k9_home?preview=dra…' // Object.is equality
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • packages/app-shell/src/console/ai/__tests__/AiChatPage.draftInMainArea-34610.test.tsx — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 6 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW

Queue-failure judgement (merge-queue build 45689095984, job Test UI (13/16)): not this PR's change, so I am re-arming once.

  • The failing test is AiChatPage.draftInMainArea-34610.test.tsx, "a page draft → that page: a card's Preview moves the main area, in draft mode". It expected /apps/app.k9/page/k9_home?preview=draft… and got /ai/build/conv-1. That is a navigation assertion on the draft-preview path.
  • The only file this PR changes on that page is AiUnavailable.tsx. There, it swaps one sentence inside the hasError branch: a phone keeps console.ai.unavailableError, and from 768 px up it uses the new console.ai.unavailableErrorDesktop. That branch renders only when the runtime serves no agent. The failing test runs with an agent present and never reaches it. No route, effect or store is touched.
  • The PR's own CI on head 51f74e6 was green, AiChatPage suite included, and the dev's local run passed as well. The queue bot reports this PR as the only hit on this signature in 24h, against 6 other failed queue builds in the same window. That pattern points to a timing or queue-group interaction, not a regression from this diff.

Re-enqueuing once. If it fails again on the same assertion, I will treat it as real and send it back for a fix.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 6cc6177 Nov 25, 2026
59 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37207-desktop-back-to-start-page branch November 25, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants