Repository navigation
feat(studio): Open app returns from the workbench to the running app; the switcher hides kernel packages - #34677
Conversation
… the switcher hides kernel packages Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…y entry's text Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…glish-only comments The chip names the open package from the full listed set (naming is not offering), and the Open app comments and changeset drop the Chinese label. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
…d the kernel-free switcher Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: REWORK L1 read of #34677 for #34593 (2026-11-17T06:37Z). Merge-base 62d9d0d, 6 commits (one clean merge of main: tree d7599895 is identical to Must-fixM1. Four changed files are outside the claim's file surface. Claim 6937501359 names
The seat needs to post a claim amendment naming them. M2. No live readings for the card's acceptance. The new suite mounts the real
Should-fixS1. The Clause-② declaration does not match the seat's reading on #34608 (seat's call). This PR adds three keys to S2. Tell the maintainer about the cut acceptance half. The 「显示系统包」 toggle and the second half of acceptance 2 are cut by ADR-0016 §3.8, which the claim and the PR body both quote. Notes
|
The seat's ruling on this package: new @object-ui/i18n keys and an added interpolation variable widen the published locale surface. Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Live readings for L1 6940786599 M2 (head 572f256)Booted at head Scripts and every screenshot: 1. App → Studio → Open app round trips: 3 of 3 land where expected
2. Package switcher: 0 kernel rows listed
3. Read-only entry in the app bar
4. Two published apps in one package: picker and second rowNo example ships a package with two apps, so one was authored on the booted stack through the public API:
Not covered
Servers torn down after the run (both ports free). |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta read 4b6267c..572f256 (2026-11-17T08:39Z), after REWORK 6940786599. What moved.
M1, met. Amendment 6940805705 and the restated S1, met. The seat ruled M2, met. Live readings are in comment 6941891338, taken on 572f256: a real CRM backend and the console over this tree. I read
The readings declare their limits: the flat Check-runs on 572f256. All completed, none red: Test UI 16/16 shards, Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, Lint & Repo Gates, TypeScript Type Check, Test Core, Dogfood Regression Gate, Check Changeset (also after the body edit), PR-body guards and Governed Surface Queue Guard. Not governed, so o3-D lands it. Must-fix: none. Should-fix: none open. S2 (put the cut 「显示系统包」 toggle in the seat's deviation list for the user) is a seat action, not a PR change. Notes:
|
…udio-open-app Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta L1 read of #34677 for #34593 (2026-11-17T11:38Z). My last ACCEPT, 6943054593, was at 572f256. Two commits have landed since, and both are merges of The merges are byte-clean.
Nothing else came in. Every non-merge commit in The PR's diff is unchanged. The diff against its merge-base is byte-identical to the diff at 572f256, after normalizing index and hunk headers: 23 files, +527/−42. It still merges cleanly with current Not governed. Budget. The body reports CI at this read. No run has failed. Several Test UI shards and one re-run of Check Changeset were still in progress. Must-fixNone. Should-fixNone. Notes
|
…ard before landing) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta L1 read of #34677 for #34593 (2026-11-17T11:54Z). My last ACCEPT, 6946975319, was at 4338cb2. One commit has landed since: a135f5c, which merges
Must-fixNone. Should-fixNone. Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-17T12:39Z
State: ready + auto-merge armed by area o3-D (lease |
Requested by Yibo Wang · project thread
Fixes #34593
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz — epic: part of #34571.
Clause-②: yes (widening) — locale keys only: three new
@object-ui/i18nstudio keys and the added{{app}}variable intopbar.openAppInStudio; nothing that worked before is refused (seat ruling, claim 6940874186)Metadata-protocol: none
维护者速读
sys.*包是不能编辑的系统包;只读入口只有一个眼睛图标,看不出是什么。ui/与文案,无元数据、无接口改动;回滚即 revert 本 PR。下拉过滤只作用于菜单,入口门禁仍读kernel标记,行为不变。StudioOpenApp.tsx(落点路径studioOpenAppPath)、PackageSwitcher.tsx(offeredPackages与触发器命名仍读全量列表那一行)、AppHeader.tsx(只读入口按钮的 className 与文字)。pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/StudioDesignSurface.openApp-34593.test.tsx,预期 7 个用例全绿;或在商机列表点「编辑应用」进 Studio,再点「打开应用」,回到商机列表。What changes
StudioOpenApp, new). The workbench header gets an "Open app" button that leaves Studio for the package's running app in the same tab, the mirror of the app bar's Edit app. It reads the?surface=Studio has in focus (the very target Edit app hands over throughappStudioRoutePath):object:NAMElands on/apps/APP/NAME(that object's list),dashboard|page|report:NAMEon that interface, anything else (or nothing) on the app home. Only published apps are offered (thelist('app')read the header already makes); a package whose only app is a draft gets no button, the existing Create app slot keeps its place. Several published apps open a picker, each addressed by its app name (ADR-0048's package-id segment only reaches the first app of a package,appAddressSegment). Unsaved pillar work asks first through the header's existingconfirmLeavePillar.offeredPackagesfilters rows taggedkernelout of the menu, which now also covers the rows the registry half serves with a flatscope: system|cloud(such assys.env-artifact-cache).parsePackageskeeps those rows and the tag, becauseuseStudioEntryGatereads it. The trigger still names an open kernel package from the full list (naming is not offering).scope ∈ {system, cloud}) remain excluded from the authoring selector — you cannot author into a kernel package." A toggle would put them back into the authoring selector. Acceptance criterion 2's second half ("after the toggle,sys.*appears") is therefore not delivered, by ruling.topbar.openAppInStudionow carries{{app}}in all ten locales (zh-Hans 「在 Studio 中查看 {{app}}」); the button keepsmax-sm:hiddenand its 44 px phone-band height, the name truncates insidemax-w-[14rem].engine.studio.openApp,engine.studio.openAppTitle,engine.studio.openAppPick(en, zh — add-only). README section on the app ⇄ Studio bridge updated.Two existing pins edited (ADR-0146 D5 is the reason for both):
AppHeader.phoneTargets-29075.test.tsx— the read-only entry is no longer a square icon button, so its className pin is split from the pencil's: both ids still assertmax-sm:hidden(intent unchanged: neither Studio button is drawn belowsm); the eye now assertsh-8 max-md:h-11instead ofh-8 w-8 max-md:size-11.AppHeader.editAppFollowsPackagePosture-12615.test.tsx— the read-only case finds the entry by its D5 app-named text ("Open CRM in Studio") instead of the old aria-label, still proving the eye (not the pencil) and its href; the mocktinterpolates{{token}}.Tests
New
StudioDesignSurface.openApp-34593.test.tsxmounts the realStudioDesignSurfaceover a fetch stub:/apps/com.example.sales/opportunity(acceptance 1);/apps/service/opportunity; draft-only app → no button;studioOpenAppPathmapping for object / dashboard / flow / none / multi-app;parsePackagesstill returns the flat kernel row taggedkernel.Plus a new describe in
AppHeader.editAppFollowsPackagePosture-12615.test.tsx: the eye carries visible, non-sr-onlywords "Open CRM in Studio"; CONTROL: the writable package keeps the icon-only pencil.All readings below were taken at head
4b6267c57(after mergingorigin/mainat62d9d0d99), each command run throughscripts/pm/os-verify-lock.sh.Test and type-check readings
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/→Test Files 335 passed (335),Tests 2572 passed (2572), VERDICT command-exit 0pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/layout/plus six other files that namePackageSwitcher/parsePackages/openAppInStudio→Test Files 146 passed (146),Tests 1025 passed (1025), VERDICT command-exit 0Test Files 3 passed (3),Tests 26 passed (26); the new file's 7 cases take 0–191 ms eachpnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n/→Test Files 102 passed (102),Tests 1894 passed | 13 skippedpnpm --filter @object-ui/i18n run type-checkandpnpm --filter @object-ui/app-shell run type-check(bothtsc --noEmitandtsc -p tsconfig.test.json) → exit 0Fix round 1 readings (head 572f256, after merging origin/main at a34eb07)
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/layout/→Test Files 477 passed (477),Tests 3539 passed (3539), VERDICT command-exit 0pnpm --dir ui exec vitest run --maxWorkers=2 packages/i18n/→Test Files 102 passed (102),Tests 1894 passed | 13 skipped (1907), VERDICT command-exit 0pnpm --filter @object-ui/i18n run type-check && pnpm --filter @object-ui/app-shell run type-check→ VERDICT command-exit 0Acceptance notes
ui/packages/app-shell/README.mdgained a short section on Open app, the D5 read-only entry and the kernel-free switcher (ui/AGENTS.md rule ✨ Set up Copilot instructions #2, docs-driven). It sits outside the claim's file list; no other open PR touches it peroverlap-check.StudioDesignSurfacehas no shared harness file (its pins are one file per card), so the Open app pins are a new file.572f256ab): comment 6941891338 carries the live readings, with scripts and screenshots under/mnt/project-files/objectstack-seat3/34593-live/. Opportunity list, pipeline dashboard and flow surface round trips land where expected (3 of 3). The switcher lists 0 kernel rows, including a flatsys.*row added by a response stand-in. The read-only entry reads "Open CRM in Studio" / 「在 Studio 中查看 客户管理」, truncates a long name at the 224 px cap and is not drawn at 375 px. The two-app picker was read on a package authored live through the API; its second row lands on/apps/twoapps_service/crm_opportunity. Not read on a staging registry.Verification
Local gate readings (head 4b6267c)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 41 commands; all 41 run locally with exit codes captured before any pipe: 40 exit 0, pluspnpm check:type-check-debtexit 3 (PREREQUISITE NOT MET, its closure build lost the lock queue: NOT MEASURED), re-run under the lock and exit 0 (--re-measure: OK — 0 ledger entr(ies) re-measured, 0 raw tsc error(s)).pnpm --dir ui exec vitest run scripts/→Test Files 171 passed | 2 skipped (173), VERDICT command-exit 0dispatch-gates --ran→41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero); outside the derivation:pnpm check:changeset-fixedexit 0 (its roster is under.changeset).pnpm --dir ui run check:new-line-citations→0 new citation(s), exit 0node scripts/pm/overlap-check.mjs --branch=HEAD→VERDICT clean exit 0(merges cleanly withorigin/mainand the 8 open PRs that share files, including feat(console): phone app menu bar with pinned entries, and a starred full menu behind More #34628, feat(app-shell): the notification bell opens a right-side full-height panel with pending approvals decidable in place #34656 and feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot and maximized in place #34665 onAppHeader.tsx)Fix round 1 gate readings (head 572f256)
dispatch-gates --commandsderived the same 41 commands; all 41 run with exit codes captured before any pipe, all exit 0.dispatch-gates --ran→41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero — all 41 recorded an exit code and none of them is 3).locales/en.ts):pnpm --dir ui run check:eager-closureexit 0 (i18n-locale-en 60.2 KB / 60.5 KB ceiling, 61,602 of 62,000 gzip bytes, headroom 398 bytes; no key moved),check:eager-locale-cataloguesexit 0,check:i18n-keys,check:i18n-drift,check:i18n-dead-keys,pnpm check:i18n,pnpm check:changeset-fixedexit 0. Measured on a CI-shaped console build (VITE_BASE_PATH=/console/ vite buildafter the @objectstack prerequisite build). The PR's only eager en change is the{{app}}placeholder intopbar.openAppInStudio(read by the eager AppHeader); its three new keys live in the lazy studio namespace.node scripts/pm/overlap-check.mjs --branch=HEAD→VERDICT clean exit 0againstorigin/mainand feat(app-shell): avatar menu org entries follow the deployment posture; the org switcher moves into the menu #34697, feat(sharing,ui): the In a queue toggle shows only on objects that use queues #34674, feat(console-ai): the AI assistant is one right-side drawer, opened from the top-bar robot and maximized in place #34665, feat(plugin-form): section navigation for stacked sectioned forms #34642.Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
🤖 Generated with Claude Code