Repository navigation
Commit 4107b3e
docs(adr): ui ADR-0057 Amendment A3, the AI assistant is one right-side drawer, maximized in place (#34640)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBLW6dHPW6sSheA32XPKZzPV)_
Part of #34608
Part of #34610
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:只改 ADR 文本。ui ADR-0057 新增 Amendment
A3:右侧抽屉是控制台唯一的聊天容器;顶栏机器人开关抽屉;放大是原地铺满,可以收回;去掉右下角浮动按钮和 `/ai` 整页;旧 `/ai`
链接(包括分享链接)打开抽屉。§3 的 focus 模式、A2 的 Maximize 条款、开放问题 2 和 5 标注为被 A3
取代。ADR-0037 同步修订:边界规则 3 里「浮动按钮是全局入口」那句,以及 Decision 里「左边聊天、右边草稿」的分屏和
`LiveCanvas` 宿主(#34610
同一裁定:搭建在右侧抽屉里进行,主区域就是应用本身,不再嵌套预览,一个发布按钮、一个改动数)。主区域按 ADR-0045
分两种情况:新应用或还没发布过的应用是已物化的真实应用(未上架),由「未发布应用」条发布;已发布应用的改动走草稿模式(`?preview=draft`),由草稿栏发布。两条栏不会同时出现,所以整屏只有一个发布按钮。Studio
里 AI 副驾的放大不再跳到 `/ai/build`(那样会丢掉当前 Studio 页面),改为原地加宽副驾栏,由 #34610 实现。
- 为什么改:#34608 和 #34610 上的裁定「同意」(comment
6937495221、6937505798)推翻了这几条已记录的决定,ADR 要和裁定一致。两张卡的代码 PR 都会引用本 PR。
- 风险与回滚:纯文档,不动代码、契约和元数据。回滚即 revert 本 PR。
- 先看:① `ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md`
新增的「Amendment A3」一节;② 同文件 §3、A2 的 Maximize 条款、开放问题 2 和 5 的删除线与注记;③ A3
里新增的「Building」一条;④ A3 里新增的「One publish control」一条,以及「One
container」一条里的三个例外(Studio 副驾、`/s/:token` 分享页、运行时气泡);⑤ Studio
副驾放大改为原地加宽的决定(同在「One container」一条,归 #34610 实现),批准本 PR 即认可它;⑥
`docs/adr/0037-live-canvas-draft-preview.md` 的 Amended
行、Decision、`LiveCanvas` 宿主一条、Phase 2 验收和边界规则 3。
- 两分钟验证:在仓根执行 `node scripts/check-adr-links.mjs && node
scripts/adr-index.mjs --report`,预期两项都通过。
- 需要你做的:Tier H,需要 os-zhuang 或 hotlong 审批。批准前不 ready、不排队、不开自动合并。
## Before and after
- Before: ui ADR-0057 §3 said 「`/ai` = the same panel **maximized**」 and
that deep links open 「the dock maximized」 on a route. Amendment A2 said
a bound dock's maximize opens `/ai/build?package=PKG`. Open question 2
kept the bottom-right button as the dock's collapsed affordance. Open
question 5 said 「the routes are untouched; the full page IS the dock
maximized」. ADR-0037's Decision said 「Ship a split-view **Live Canvas**:
chat on the left, the user's app rendered from the **draft overlay** on
the right」, it named 「A `LiveCanvas` split-view host」, and rule 3 said
「The floating button keeps its role as the everywhere intent-entry」.
- After: Amendment A3 records both rulings and the decision, including
building in the drawer with the app draft in the main area. Each
superseded clause is struck through with a pointer to A3. The main area
shows the app in the regime the build is in (ADR-0045): the real
unpublished app for a new or still-unpublished app, draft mode for
changes to a published app. The screen's one Publish is the shell's bar
for that regime. The draft-overlay mechanism, ADR-0037's per-artifact
refresh and its data plane do not change.
## What changes
`ui/docs/adr/0057-console-ai-chat-one-conversation-docked.md`:
- The **Amended** header line names Amendment A3 (2026-11-17) and what
it supersedes.
- §3: the docked-rail bullet notes that the launcher is now the top-bar
robot. The focus-mode bullet is struck through and replaced with the
in-place maximize.
- Amendment A2: the **Maximize** clause is struck through. A2's key
decision (`app:PKG:build`) is unchanged.
- New section **Amendment A3 (2026-11-17, Accepted) — one drawer,
maximized in place**: what it changes, why (staging measurements, epic
#34571 comment 6936163971), the maintainer ruling quoted verbatim (「同意」,
recorded in comment 6937495221), and the decision: one container (Home
included), the robot as the one entry carrying the plan-pending marker
(objectui#11666), the floating button and its corner-yield rule
(objectui#12248) retired, in-place maximize and restore, history behind
a button at rail width and as a column when maximized, the `/ai…`
addresses kept routed and opening the drawer (share links per ADR-0013,
the Builder handoff still only in navigation state per objectui#12493),
the Home and app-management entries, and builder guidance. It keeps A1
(a new build starts unbound) and ADR-0063 (product chosen by principal).
- Open questions 2 and 5: the earlier decisions are struck through and
marked **RE-DECIDED (2026-11-17, Amendment A3)**.
- A3 also gets a **Building** bullet (#34610, ruled the same day,
comment 6937505798). The build runs in the same drawer. The main area
shows the app itself, in the regime the build is in (ADR-0045): the real
unpublished app for a new or still-unpublished app, the shell's
`?preview=draft` mode for changes to a published app. It refreshes in
place per artifact (ADR-0037 Phase 2). The `LiveCanvas` iframe host is
retired, and a new build stays unbound until it binds a package (A1).
- A **One publish control** bullet: the screen's one Publish is the
shell's bar for that regime. The unpublished-app bar says the app is not
published yet; the draft bar says how many unpublished changes the app
has. The count is the current package's pending drafts, the same in the
draft bar, its changes panel and the chat. The chat draws no Publish of
its own and shows a receipt after a publish.
- **One container** names three surfaces that keep their own chrome:
Studio's copilot slot, the `/s/:token` share page and the runtime bubble
(§4). Studio's maximize widens the copilot slot in place instead of
navigating to `/ai/build` (implemented under #34610).
- The TL;DR's decision 3 gets a pointer to A3, and
`layout/ConsoleChatbotFab.tsx` is marked deleted in the Consumers list.
`docs/adr/0037-live-canvas-draft-preview.md`: a new **Amended** header
line naming both ADR-0045 regimes. The Decision's split view, the
`LiveCanvas` split-view host item, Phase 2's 「right pane」 acceptance and
chat-host list, and rule 3's 「becomes the left pane」 and floating-button
sentence are struck through or annotated with amendment notes. The
draft-overlay mechanism, the per-artifact refresh and the four phases'
data plane stand.
## Acceptance notes
- The first head (e401096) amended only ADR-0037's floating-button
sentence. On the seat's call, the second commit (2abe390) adds the
ADR-0037 Decision and `LiveCanvas` host amendment that the #34610 ruling
scopes into this amendment, so the maintainer reads one ADR PR.
- The third and fourth commits answer the seat's contract reviews
(comments 6939599575 and 6939702434). M1: the ADR-0045 regimes and the
one bar per regime. S1: the carve-outs and Studio's in-place maximize.
S2: per-artifact refresh. S3: ADR-0037's host item names both regimes.
- The ruling's words are quoted untranslated, as in Amendment A2.
## Verification
- `node scripts/check-adr-links.mjs`: exit 0 (1145 relative link
destinations resolve).
- `node scripts/check-adr-anchors.mjs`: exit 0.
- `node scripts/adr-index.mjs --report`: OK, `docs/adr/README.md` is
current.
<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzidTEhaEGRzboS7xTa -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent fecd2e9 commit 4107b3e
2 files changed
Lines changed: 141 additions & 16 deletions
File tree
- docs/adr
- ui/docs/adr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | | - | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments