You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Approval request opened with no source app (home 我的工作, notification, email link): where should it land instead of the Setup app? #35505
Split from #35412 by seat 5 (area ux-1): that card's item 2, which the maintainer's approval left as 「另行决定」 (a separate decision). ⛔ Not a claim. #35412 ships items 1 and 3 (in-app inbox opens stay in the app; no internal id in the breadcrumb while loading).
What happens today (read on main, os-dev report 7009044681)
Home 我的工作 and the notification popover open /apps/HOST/system/approvals?request=ID, where HOST is the current app, else the first active app.
Email and server links open /system/approvals?request=ID, which forwards to /apps/setup/system/approvals?request=ID.
Both then open the request under the app whose navigation lists the record's object, else the Setup app.
No app-less approval page is reachable on main: /system/* always forwards into Setup, and the app-less route set only mounts when a deployment has no apps.
The decision owed
Where an approval request opened with no source app should land. The card's suggestion: an approval page without an app sidebar, not the Setup app. Building that is new routing (a page reachable outside any app), so it waits on the maintainer's choice.
Done when
The maintainer has chosen the landing; then a dispatch card carries the build.
Triage: lands in domain:ui · needs-user-decision; rationale: area:ux · Feature (where an approval opened with no source app should land) · from the maintainer's topic #34571 → p2 as set. State moved: a card that waits on the maintainer's product choice goes to the decision box; pm:awaiting-maintainer is for a hand action outside GitHub (rules at 895dd437).
Ruling (2026-11-22T10:28Z): option A. The maintainer (Steedos) answered in the project at 2026-11-22T10:27Z: 「附件预览(#34781) 和我讨论具体方案及开发成本, 其他同意」. "其他" is the recommendation a Fable-analysed rulings thread put to him for this card.
What the ruling binds:
An approval request opened with no source app stays inside an app and no longer lands in Setup by default. The app is chosen in this order: the object's own app, then the current app, then the last used app (LastAppProvider), then the first app. /system/approvals… forwards to that app instead of Setup, and so does /apps/setup/system/approvals.
In the same card: Back/Close from a deep link returns to the approvals centre, not to the raw sys_approval_request list. Opening from home and from the bell carries the pending queue, so 「处理后打开下一条」 works. The email link carries only the return link.
Defaults agreed with it: if Setup is already the user's current or last used app, the request may stay there. Approvers with zero apps are not supported now; file a card on real feedback.
The pinned test "…opens under Setup" flips with this change.
Code sites the analysis read: HomePage.tsx:496,967 · InboxPopover.tsx:342,358 · approval-service.ts:2571-2578 · ApprovalsInboxPage.tsx:744-806 · objectHostApp.ts:71-85 · RecordDetailView.tsx:4810,4886,5703 · approvalQueueAdvance.tsx:33-34. needs-user-decision is removed in this act, and the card enters the queue for seat 7's f7-record area.
Claim: PM loop · area s2-B · 2026-11-22T20:02Z
Session: session_01ADHkmRB34k9WUWeGpRnVNm
Account: os-steve
Branch: claude/issue-35505-approval-host-app
Worktree: objectstack-issue-35505
Domain: domain:ui
Seat: repo:objectstack#2
Area: s2-B
File surface: the ruling's code sites, re-read on origin/main — ui/packages/app-shell/src/console/home/HomePage.tsx, ui/packages/app-shell/src/layout/InboxPopover.tsx, ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx, the /system/* and /apps/setup/system/approvals forwarding in ui/packages/app-shell/src/console/** / ui/packages/app-shell/src/utils/appRoute.ts, objectHostApp.ts, RecordDetailView.tsx (Back/Close from a deep link), approvalQueueAdvance.tsx, PhoneAppNavBar.tsx if the same host rule is read there; packages/plugins/plugin-approvals/src/approval-service.ts only if the email link's return parameter needs it; the pinned test that flips ("…opens under Setup", ApprovalsInboxPage.opensServedPage-12484.test.tsx:419), new card-named tests, a changeset (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: default tier (dispatch-gates --tier at aad35e6885: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (maintainer ruling 7077818174, option A)
Thread-read: 7077818174
Premise: holds — at origin/main aad35e6 HomePage (:963-967) and InboxPopover (:351-358) open /apps/HOST/system/approvals?request=ID; the server's links are /system/approvals?request=ID (approval-service.ts:2568-2572); ApprovalsInboxPage.opensServedPage-12484.test.tsx:419 still pins "no app lists the object: the request opens under Setup".
Pre-claim lane: repo:objectstack whole-repo lane, area s2-B (seat 2 area order 2026-11-22); the ruling queued the card for seat 7's f7-record area, which holds to work in hand since the maintainer's 14:49Z order; the card is unassigned and on this area's list; paths ui/** plus at most one plugin-approvals file.
Pre-claim deps: ruling 7077818174 removed needs-user-decision; seat 7's #36438 and #36478 (both on RecordDetailView.tsx) merged; no Blocked-by: line.
Prior rulings read: the card's own ruling 7077818174 (option A, items 1–4) binds; approval,approvals,setup,host-app,last-app,deep-link → 50 hits; ADR-0019 D1–D4, ADR-0027 Decision §10, §12, §14, §16, ADR-0018 Decision §3, ADR-0133 D3; thread: none.
Fold-or-serial: not folded — #36472 is a different mechanism on disjoint files (it is fenced off RecordDetailView.tsx this round).
Serial constraints cleared: no open PR touches any file on this surface at 2026-11-22T20:02Z (open-PR file read)
{
"issue": 35505,
"status": "done",
"branch": "claude/issue-35505-approval-host-app",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36546",
"session": "session_01ADHkmRB34k9WUWeGpRnVNm",
"premise_still_valid": true,
"summary": "Implemented ruling option A. An approval opened with no source app now lands in this order: the app that lists the record's object (objectHostAppSegment with a new { orSetup: false }), then the current app, the last used app (useLastApp from LastAppProvider) and the first app (new resolveApprovalsHostSegment in utils/appRoute.ts, built on resolveHostAppSegment). Home and the bell use it for their approvals links and approval notices. The setup-alias inbox path (/apps/setup/system/approvals, which /system/approvals forwards to) moves to that host before any chrome mounts. The request deep link carries from.pathname = that app's approvals inbox, so close and back return to the approvals centre; Home and the bell also hand the pending queue (approvalQueueState), so 'open next after deciding' works. The e-mail link and notifications carry only the way back. RecordDetailView.tsx, approvalQueueAdvance.tsx, PhoneAppNavBar.tsx and approval-service.ts were not changed. origin/main had moved from aad35e6885 to f3a8a13c14 at the start; the premise held there.",
"tests": "Head 1116647a9a. Locally at 066d80cee8, under the lock: 15 files, 192 passed, TESTEXIT=0. The files are appRoute, objectHostApp, HomePage.approvalsTarget, InboxPopover.approvalsSegment-11818, InboxPopover.rightPanel-34589, AppContent.setupItemRoutesVerdict-12706, AppContent.setupObjectListVerdict-28988, ApprovalsInboxPage.opensServedPage-12484, systemRedirectTarget, bootRedirectCoverage, HomePage.notificationDeepLink, InboxPopover.notificationDeepLink, InboxPopover.unsavedEditsLeave-13253, InboxPopover.viewAllTarget and LastAppProvider. Type checks: app-shell exit 0 at 066d80cee8; console exit 0 at 6f01f71013, after building the @object-ui closure. HomePage.myWork-12602 was not measured locally (two exit-99 lock waits) and is read from CI: Test UI 10/16 was red at 066d80cee8 on the changed navigate call shape, and is green at 1ed5095d52 and at the final head. Ablations went through scripts/ablation-replace.mjs; each mutation landed and was restored to the HEAD blob with an empty git diff HEAD. (1) drop orSetup:false: 1 failed / 13 passed, the flipped pin. (2) drop the deep link's state: 3 failed / 11 passed. (3) delete the alias Navigate in AppContent: 5 failed / 11 passed. (4) Home back on resolveHostAppSegment: 3 failed / 6 passed. No build was needed: ui/vitest aliases @object-ui/* to src.",
"gates": "Local, at 1116647a9a: dispatch-gates --commands derived 39 families; each run with stdin from /dev/null, exit taken before any pipe: 39 x exit 0. The record is at /mnt/project-files/objectstack-seat2/35505-gates-ran.txt, read back after 10 s. --ran: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN'. Two earlier local readings went red and were fixed: check:test-source-alias (lint warm-import in two edited harnesses), and one 'pnpm --dir ui exec vitest run scripts/' run at 066d80cee8 that was SIGKILLed with no verdict, then passed 172 files at the final head. overlap-check: VERDICT clean exit 0. check:new-line-citations: 0 new. CI at 1116647a9a: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check Changeset all success; Build Core skipped by its path selector. Declared narrowing: the full ui package suites and test:repo were not run locally; CI ran them green.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 relay writes plus pushes: pr_create (POST /repos/objectstack-ai/objectstack/pulls, plus POST /issues/36546/assignees), issue_patch (PATCH /repos/objectstack-ai/objectstack/issues/36546, PR body), post-stamped comment (POST /repos/objectstack-ai/objectstack/issues/35505/comments). git push is not a REST write.",
"open_questions": [
{
"question": "For a notification row, should the last used app also apply to the full inbox and activity links on Home, not only to approval links?",
"options": [
"A — approvals only (as shipped): the sys_inbox_message and sys_activity drills keep current app, then first app",
"B — every Home drill consults the last used app"
],
"recommendation": "A, because the ruling covers approvals only, and B changes two other pages' landing without a ruling."
},
{
"question": "The alias move waits up to 2 s for the last used app, but only when no current app answers. Keep it, or drop the wait?",
"options": [
"A — keep the bounded wait, the same as the phone landing's",
"B — no wait: fall straight to the first app"
],
"recommendation": "A, because without it a cold e-mail link would ignore the last used app whenever the preference read is slower than the metadata read."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat (os-steve) · ui/packages/app-shell/README.md, the paragraph on Setup system pages, still says a member reaches the approvals inbox under the Setup segment from the server links. Now stale; outside the card's file surface; noted in Acceptance notes, not filed",
"carrier: seat (os-steve) · record-pointer-card-renderer.test.tsx 'no app lists the object: the record opens under Setup' pins the RECORD link rule (objectHostAppSegment default, objectstack#32667), not the request. Not flipped; whether the record link should follow the same order is not covered by ruling 7077818174. Noted, not filed"
]
}
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·needs-user-decision; rationale: area:ux · Feature (where an approval opened with no source app should land) · from the maintainer's topic #34571 → p2 as set. State moved: a card that waits on the maintainer's product choice goes to the decision box;pm:awaiting-maintaineris for a hand action outside GitHub (rules at895dd437).objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC
Ruling (2026-11-22T10:28Z): option A. The maintainer (Steedos) answered in the project at 2026-11-22T10:27Z: 「附件预览(#34781) 和我讨论具体方案及开发成本, 其他同意」. "其他" is the recommendation a Fable-analysed rulings thread put to him for this card.
What the ruling binds:
/system/approvals…forwards to that app instead of Setup, and so does/apps/setup/system/approvals.sys_approval_requestlist. Opening from home and from the bell carries the pending queue, so 「处理后打开下一条」 works. The email link carries only the return link.Code sites the analysis read: HomePage.tsx:496,967 · InboxPopover.tsx:342,358 · approval-service.ts:2571-2578 · ApprovalsInboxPage.tsx:744-806 · objectHostApp.ts:71-85 · RecordDetailView.tsx:4810,4886,5703 · approvalQueueAdvance.tsx:33-34.
needs-user-decisionis removed in this act, and the card enters the queue for seat 7's f7-record area.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm
Claim: PM loop · area s2-B · 2026-11-22T20:02Z
Session:
session_01ADHkmRB34k9WUWeGpRnVNmAccount:
os-steveBranch:
claude/issue-35505-approval-host-appWorktree:
objectstack-issue-35505Domain:
domain:uiSeat:
repo:objectstack#2Area: s2-B
File surface: the ruling's code sites, re-read on origin/main —
ui/packages/app-shell/src/console/home/HomePage.tsx,ui/packages/app-shell/src/layout/InboxPopover.tsx,ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx, the/system/*and/apps/setup/system/approvalsforwarding inui/packages/app-shell/src/console/**/ui/packages/app-shell/src/utils/appRoute.ts,objectHostApp.ts,RecordDetailView.tsx(Back/Close from a deep link),approvalQueueAdvance.tsx,PhoneAppNavBar.tsxif the same host rule is read there;packages/plugins/plugin-approvals/src/approval-service.tsonly if the email link's return parameter needs it; the pinned test that flips ("…opens under Setup",ApprovalsInboxPage.opensServedPage-12484.test.tsx:419), new card-named tests, a changeset (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: default tier (dispatch-gates --tier at aad35e6885: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect card(maintainer ruling 7077818174, option A)Thread-read: 7077818174
Premise: holds — at origin/main aad35e6 HomePage (
:963-967) and InboxPopover (:351-358) open/apps/HOST/system/approvals?request=ID; the server's links are/system/approvals?request=ID(approval-service.ts:2568-2572);ApprovalsInboxPage.opensServedPage-12484.test.tsx:419still pins "no app lists the object: the request opens under Setup".Pre-claim lane: repo:objectstack whole-repo lane, area s2-B (seat 2 area order 2026-11-22); the ruling queued the card for seat 7's f7-record area, which holds to work in hand since the maintainer's 14:49Z order; the card is unassigned and on this area's list; paths
ui/**plus at most oneplugin-approvalsfile.Pre-claim deps: ruling 7077818174 removed
needs-user-decision; seat 7's #36438 and #36478 (both onRecordDetailView.tsx) merged; noBlocked-by:line.Prior rulings read: the card's own ruling 7077818174 (option A, items 1–4) binds; approval,approvals,setup,host-app,last-app,deep-link → 50 hits; ADR-0019 D1–D4, ADR-0027 Decision §10, §12, §14, §16, ADR-0018 Decision §3, ADR-0133 D3; thread: none.
Fold-or-serial: not folded — #36472 is a different mechanism on disjoint files (it is fenced off
RecordDetailView.tsxthis round).Serial constraints cleared: no open PR touches any file on this surface at 2026-11-22T20:02Z (open-PR file read)
feat(ui): approval opened with no source app stays in an app, not Setup
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm
os-dev-report
{ "issue": 35505, "status": "done", "branch": "claude/issue-35505-approval-host-app", "pr": "https://github.com/objectstack-ai/objectstack/pull/36546", "session": "session_01ADHkmRB34k9WUWeGpRnVNm", "premise_still_valid": true, "summary": "Implemented ruling option A. An approval opened with no source app now lands in this order: the app that lists the record's object (objectHostAppSegment with a new { orSetup: false }), then the current app, the last used app (useLastApp from LastAppProvider) and the first app (new resolveApprovalsHostSegment in utils/appRoute.ts, built on resolveHostAppSegment). Home and the bell use it for their approvals links and approval notices. The setup-alias inbox path (/apps/setup/system/approvals, which /system/approvals forwards to) moves to that host before any chrome mounts. The request deep link carries from.pathname = that app's approvals inbox, so close and back return to the approvals centre; Home and the bell also hand the pending queue (approvalQueueState), so 'open next after deciding' works. The e-mail link and notifications carry only the way back. RecordDetailView.tsx, approvalQueueAdvance.tsx, PhoneAppNavBar.tsx and approval-service.ts were not changed. origin/main had moved from aad35e6885 to f3a8a13c14 at the start; the premise held there.", "tests": "Head 1116647a9a. Locally at 066d80cee8, under the lock: 15 files, 192 passed, TESTEXIT=0. The files are appRoute, objectHostApp, HomePage.approvalsTarget, InboxPopover.approvalsSegment-11818, InboxPopover.rightPanel-34589, AppContent.setupItemRoutesVerdict-12706, AppContent.setupObjectListVerdict-28988, ApprovalsInboxPage.opensServedPage-12484, systemRedirectTarget, bootRedirectCoverage, HomePage.notificationDeepLink, InboxPopover.notificationDeepLink, InboxPopover.unsavedEditsLeave-13253, InboxPopover.viewAllTarget and LastAppProvider. Type checks: app-shell exit 0 at 066d80cee8; console exit 0 at 6f01f71013, after building the @object-ui closure. HomePage.myWork-12602 was not measured locally (two exit-99 lock waits) and is read from CI: Test UI 10/16 was red at 066d80cee8 on the changed navigate call shape, and is green at 1ed5095d52 and at the final head. Ablations went through scripts/ablation-replace.mjs; each mutation landed and was restored to the HEAD blob with an empty git diff HEAD. (1) drop orSetup:false: 1 failed / 13 passed, the flipped pin. (2) drop the deep link's state: 3 failed / 11 passed. (3) delete the alias Navigate in AppContent: 5 failed / 11 passed. (4) Home back on resolveHostAppSegment: 3 failed / 6 passed. No build was needed: ui/vitest aliases @object-ui/* to src.", "gates": "Local, at 1116647a9a: dispatch-gates --commands derived 39 families; each run with stdin from /dev/null, exit taken before any pipe: 39 x exit 0. The record is at /mnt/project-files/objectstack-seat2/35505-gates-ran.txt, read back after 10 s. --ran: '39 derived, 39 run, 0 NOT-MEASURED, 0 UNRUN'. Two earlier local readings went red and were fixed: check:test-source-alias (lint warm-import in two edited harnesses), and one 'pnpm --dir ui exec vitest run scripts/' run at 066d80cee8 that was SIGKILLed with no verdict, then passed 172 files at the final head. overlap-check: VERDICT clean exit 0. check:new-line-citations: 0 new. CI at 1116647a9a: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16), Build & E2E UI, Live E2E UI, Dogfood Regression Gate and Check Changeset all success; Build Core skipped by its path selector. Declared narrowing: the full ui package suites and test:repo were not run locally; CI ran them green.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 relay writes plus pushes: pr_create (POST /repos/objectstack-ai/objectstack/pulls, plus POST /issues/36546/assignees), issue_patch (PATCH /repos/objectstack-ai/objectstack/issues/36546, PR body), post-stamped comment (POST /repos/objectstack-ai/objectstack/issues/35505/comments). git push is not a REST write.", "open_questions": [ { "question": "For a notification row, should the last used app also apply to the full inbox and activity links on Home, not only to approval links?", "options": [ "A — approvals only (as shipped): the sys_inbox_message and sys_activity drills keep current app, then first app", "B — every Home drill consults the last used app" ], "recommendation": "A, because the ruling covers approvals only, and B changes two other pages' landing without a ruling." }, { "question": "The alias move waits up to 2 s for the last used app, but only when no current app answers. Keep it, or drop the wait?", "options": [ "A — keep the bounded wait, the same as the phone landing's", "B — no wait: fall straight to the first app" ], "recommendation": "A, because without it a cold e-mail link would ignore the last used app whenever the preference read is slower than the metadata read." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat (os-steve) · ui/packages/app-shell/README.md, the paragraph on Setup system pages, still says a member reaches the approvals inbox under the Setup segment from the server links. Now stale; outside the card's file surface; noted in Acceptance notes, not filed", "carrier: seat (os-steve) · record-pointer-card-renderer.test.tsx 'no app lists the object: the record opens under Setup' pins the RECORD link rule (objectHostAppSegment default, objectstack#32667), not the request. Not flipped; whether the record link should follow the same order is not covered by ruling 7077818174. Noted, not filed" ] }feat(ui): an approval opened with no source app stays in an app inste…