Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion docs/design/artboards/d215/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,24 @@
.app.m .v2-artifacts .v2-artifacts__name { white-space: normal; overflow-wrap: anywhere; }
.app.m .v2-artifacts .v2-artifacts__open { display: flex; width: 100%; height: 44px; font-size: 14px; }
/* artifacts:end */
/* run trace: the live v2-run-trace__* names (V2RunTrace.tsx), redrawn with the page's own rules.
Scoped to .v2-run-trace, the page's root. New name: __foot. */
.v2-run-trace { max-width: 880px; min-width: 0; color: var(--ink); font-size: 14px; line-height: 20px; }
.v2-run-trace h1 { font: 700 32px/1.1 var(--f-display); letter-spacing: -0.03em; margin: 16px 0; }
.v2-run-trace h2 { font: 700 20px/1.2 var(--f-display); margin: 0; }
.v2-run-trace p { margin: 0; }
.v2-run-trace__back { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.v2-run-trace__retention { color: var(--mu); font-size: 12px; margin: 0 0 12px !important; }
.v2-run-trace__summary, .v2-run-trace__call { display: grid; gap: 8px; border: 1px solid var(--b); border-radius: 6px; padding: 16px; margin: 12px 0; min-width: 0; }
.v2-run-trace__meta, .v2-run-trace code { font: 12px/16px var(--f-mono); }
.v2-run-trace code, .v2-run-trace__call strong { overflow-wrap: anywhere; }
.v2-run-trace__turns { list-style: none; margin: 24px 0; padding: 0; }
.v2-run-trace__turns > li { border-top: 1px solid var(--d); padding-top: 16px; margin-top: 16px; display: grid; gap: 8px; }
.v2-run-trace__foot { display: grid; gap: 4px; border-top: 1px solid var(--d); padding-top: 12px; margin-top: 24px; color: var(--mu); font-size: 12px; line-height: 16px; }
.v2-run-trace__foot code { color: var(--mu); }
.app.m .mbody2--trace { padding: 0 16px 16px; overflow: hidden; display: block; }
.app.m .v2-run-trace__back { min-height: 44px; }
/* run-trace:end */
/* first run: the live v2-first-run__* and v2-chat__start* names. The dialog sits inside .app, over the pod. */
.v2-chat__starts { display: grid; grid-template-columns: minmax(0, max-content); gap: 6px; margin: 2px 0 6px 48px; }
.v2-chat__start { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: 10px; font: 500 13px/1.35 var(--f-body); color: var(--ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); box-shadow: inset 0 0 0 1px var(--key-edge), var(--sh-key); }
Expand Down Expand Up @@ -1124,7 +1142,7 @@ <h1>Same look. <em>Less said.</em></h1>
<li><svg viewBox="0 0 24 24"><use href="#i-grid"/></svg><b>One screen first</b><span>Repeated blocks become a table; rare settings collapse.</span></li>
</ol>
<nav class="toc" aria-label="Surfaces">
<a href="#s-sidebar">Sidebar controls</a><a href="#s-chat">Pod chat</a><a href="#s-dm">DM room</a><a href="#s-board">Task board</a><a href="#s-memory">Memory</a><a href="#s-agent">Agent settings</a><a href="#s-settings">Settings</a><a href="#s-connectors">Connectors</a><a href="#s-byo">Bring your own</a><a href="#s-connect">Connect</a><a href="#s-profile">Person profile</a><a href="#s-agent-profile">Agent profile</a><a href="#s-team">Your team</a><a href="#s-activity">Activity</a><a href="#s-artifacts">Artifacts</a><a href="#s-firstrun">First run</a><a href="#s-signin">Sign in</a><a href="#s-signup">Sign up</a><a href="#s-dark">Dark mode</a>
<a href="#s-sidebar">Sidebar controls</a><a href="#s-chat">Pod chat</a><a href="#s-dm">DM room</a><a href="#s-board">Task board</a><a href="#s-memory">Memory</a><a href="#s-agent">Agent settings</a><a href="#s-settings">Settings</a><a href="#s-connectors">Connectors</a><a href="#s-byo">Bring your own</a><a href="#s-connect">Connect</a><a href="#s-profile">Person profile</a><a href="#s-agent-profile">Agent profile</a><a href="#s-team">Your team</a><a href="#s-activity">Activity</a><a href="#s-artifacts">Artifacts</a><a href="#s-run-trace">Reply trace</a><a href="#s-firstrun">First run</a><a href="#s-signin">Sign in</a><a href="#s-signup">Sign up</a><a href="#s-dark">Dark mode</a>
</nav>

<section class="surf" id="s-sidebar">
Expand Down Expand Up @@ -1613,6 +1631,17 @@ <h1>Same look. <em>Less said.</em></h1>
<div class="notes"><ul><li><b>Class names are the page's own</b> (<span class="cd">v2-artifacts__*</span>), so the build copies them. New names: <span class="cd">__zero</span> (the card) and <span class="cd">__open</span> (its ink key).</li><li><b>Day zero has nothing to filter, so it shows no filters.</b> It applies when the total is 0 and no kind, pod or search filter is set, and the page is not loading and has no error. Then the kind segment, the pod segment, the search box and the head's count all drop, and one bordered card (not dashed) takes their place.</li><li><b>The card is the only act on the page.</b> Its key opens the account's oldest pod (signup creates My Workspace first), labelled with that pod's name. An account with no pods gets the card without the key.</li><li><b>A filtered empty result keeps the controls.</b> With a kind, pod or search set, the page keeps prod's dashed line, <span class="cd">Nothing matches. Clear a filter or the search.</span>, under the controls, so the way out stays on screen.</li><li><b>At 390 the key is full width and 44px tall.</b> Busy is prod's table, unchanged: the pod folds under the name as a mono line, and pod, shared by and size hide.</li></ul><h3>Each state, one line</h3><table class="ctl"><tr><td>Day zero</td><td><b>Drawn</b> at 1440 and 390. Total 0, no kind, pod or search set, not loading, no error: no controls, no count, the card.</td></tr><tr><td>Busy</td><td><b>Drawn</b> at 1440 and 390. Prod's table and foot, unchanged.</td></tr><tr><td>Filtered, empty</td><td><b>Not drawn.</b> Controls stay; prod's dashed <span class="cd">emptyFiltered</span> line under them.</td></tr><tr><td>No pods</td><td><b>Not drawn.</b> The day-zero card without its key.</td></tr><tr><td>Loading, error</td><td><b>Not drawn.</b> They keep prod's spinner and <span class="cd">__error</span> line.</td></tr></table></div>
</div>
</section>
<section class="surf" id="s-run-trace">
<div class="shead"><h2>How this reply was made</h2><span class="route">/v2/pods/:podId/runs/:runId</span></div>
<div class="row1" style="grid-template-columns:minmax(0,1fr)">
<figure><figcaption><b>After · 1440</b><span>no pods sidebar, no header: the page owns its h1</span></figcaption><div class="frame" style="--fw:1440;--fh:900" data-surface="run-trace-after" data-vp="1440"><div class="app d"><div class="sh sh--page"><nav class="rail"><div class="logo"><svg class="i" viewBox="0 0 24 24"><use href="#i-mark"/></svg></div><div class="nav on" title="Pods"><svg class="i" viewBox="0 0 24 24"><use href="#i-layers"/></svg></div><div class="nav" title="Agents"><svg class="i" viewBox="0 0 24 24"><use href="#i-team"/></svg></div><div class="nav" title="Needs you"><svg class="i" viewBox="0 0 24 24"><use href="#i-activity"/></svg></div><div class="nav" title="Artifacts"><svg class="i" viewBox="0 0 24 24"><use href="#i-file"/></svg></div><div class="nav" title="Connectors"><svg class="i" viewBox="0 0 24 24"><use href="#i-plug"/></svg></div><div class="nav" title="Settings"><svg class="i" viewBox="0 0 24 24"><use href="#i-gear"/></svg></div><div class="sp"></div><div class="nav" title="Feedback"><svg class="i" viewBox="0 0 24 24"><use href="#i-feedback"/></svg></div><div class="seg seg--ic seg--rail" role="group" aria-label="Theme"><button type="button" data-t="light" title="Light" aria-label="Light" aria-pressed="false"><svg class="i" viewBox="0 0 24 24"><use href="#i-sun"/></svg></button><button type="button" data-t="dark" title="Dark" aria-label="Dark" aria-pressed="false"><svg class="i" viewBox="0 0 24 24"><use href="#i-moon"/></svg></button></div><span class="av av--36"><svg viewBox="0 0 40 40"><use href="#av-alex"/></svg></span></nav><div class="pane"><div class="pbody"><section class="v2-run-trace"><a class="v2-run-trace__back" href="#">Back to pod</a><h1>How this reply was made</h1><div class="v2-run-trace__summary"><strong>Scout</strong><span>Succeeded · answered a mention</span><span>2 turns · 13,951 tokens</span><time>11/2/2026, 8:28:14 AM</time></div><p role="status" class="v2-run-trace__limited">This stored trace was size-limited. Large content fields are capped.</p><ol class="v2-run-trace__turns"><li><h2>Turn 1</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 4210 ms · 9120 tokens</p><div class="v2-run-trace__call"><strong>commonly_agent_status</strong><span>ok · 312 ms</span><p>Built-in tool. No connector credential.</p></div></li><li><h2>Turn 2</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 2890 ms · 4831 tokens</p><p>No tool calls.</p></li></ol><footer class="v2-run-trace__foot"><p>Cards have a 30-day default retention. Pod policy and storage limits can change it. This trace persists after the card expires.</p><code>Run 6a1f3c9e8b2d4f7a1c0e5b93</code></footer></section></div></div></div></div></div></figure>
</div>
<div class="row2 row2--even">
<figure><figcaption><b>Before · 390</b><span>walk 11-02: “Run trace”, a storage note, raw ids</span></figcaption><div class="frame" style="--fw:390;--fh:844" data-surface="run-trace-before" data-vp="390"><div class="app m"><div class="mbody2 mbody2--trace"><section class="v2-run-trace"><a class="v2-run-trace__back" href="#">Back to pod</a><h1>Run trace</h1><p class="v2-run-trace__retention">Cards have a 30-day default retention. Pod policy and storage limits can change it. This trace persists after the card expires.</p><div class="v2-run-trace__summary"><strong>scout</strong><span>Succeeded · Mention</span><span>Recorded turns: 2 · 13951 tokens</span><time>11/2/2026, 8:28:14 AM</time><code>6a1f3c9e8b2d4f7a1c0e5b93</code></div><p role="status" class="v2-run-trace__limited">This stored trace was size-limited. Large content fields are capped.</p><ol class="v2-run-trace__turns"><li><h2>Turn 1</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 4210 ms · 9120 tokens</p><div class="v2-run-trace__call"><strong>commonly_agent_status</strong><span>ok · 312 ms</span><p>Built-in tool. No connector credential.</p></div></li><li><h2>Turn 2</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 2890 ms · 4831 tokens</p><p>No tool calls.</p></li></ol></section></div><div class="mtab"><div class="on"><svg class="i" viewBox="0 0 24 24"><use href="#i-layers"/></svg><span>Pods</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-activity"/></svg><span>Needs you</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-team"/></svg><span>Team</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-gear"/></svg><span>Settings</span></div></div></div></div></figure>
<figure><figcaption><b>After · 390</b><span>display name, plain words, details at the foot</span></figcaption><div class="frame" style="--fw:390;--fh:844" data-surface="run-trace-after" data-vp="390"><div class="app m"><div class="mbody2 mbody2--trace"><section class="v2-run-trace"><a class="v2-run-trace__back" href="#">Back to pod</a><h1>How this reply was made</h1><div class="v2-run-trace__summary"><strong>Scout</strong><span>Succeeded · answered a mention</span><span>2 turns · 13,951 tokens</span><time>11/2/2026, 8:28:14 AM</time></div><p role="status" class="v2-run-trace__limited">This stored trace was size-limited. Large content fields are capped.</p><ol class="v2-run-trace__turns"><li><h2>Turn 1</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 4210 ms · 9120 tokens</p><div class="v2-run-trace__call"><strong>commonly_agent_status</strong><span>ok · 312 ms</span><p>Built-in tool. No connector credential.</p></div></li><li><h2>Turn 2</h2><p class="v2-run-trace__meta">deepseek-v4-flash · 2890 ms · 4831 tokens</p><p>No tool calls.</p></li></ol><footer class="v2-run-trace__foot"><p>Cards have a 30-day default retention. Pod policy and storage limits can change it. This trace persists after the card expires.</p><code>Run 6a1f3c9e8b2d4f7a1c0e5b93</code></footer></section></div><div class="mtab"><div class="on"><svg class="i" viewBox="0 0 24 24"><use href="#i-layers"/></svg><span>Pods</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-activity"/></svg><span>Needs you</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-team"/></svg><span>Team</span></div><div class=""><svg class="i" viewBox="0 0 24 24"><use href="#i-gear"/></svg><span>Settings</span></div></div></div></div></figure>
<div class="notes"><ul><li><b>Class names are the page's own</b> (<span class="cd">v2-run-trace__*</span>, V2RunTrace.tsx). One new name: <span class="cd">__foot</span>. <span class="cd">__retention</span> stays: this page no longer uses it, but the task record page renders its intro with it.</li><li><b>The h1 matches the link the person clicked.</b> <span class="cd">runTrace.title</span> reads <span class="cd">How this reply was made</span>, the same words as <span class="cd">runTrace.view</span> under the reply (zh: 这条回复是怎么来的).</li><li><b>The first line is the agent's display name.</b> The page reads the pod roster, <span class="cd">GET /api/registry/pods/:podId/agents</span>, the same call the pod chat uses. It matches the run to a roster entry with the shared <span class="cd">agentKeyFor</span> (agent name plus instance, the key the chat byline and inspector use) and shows that entry's <span class="cd">displayName</span>.</li><li><b>No match shows the raw name.</b> While the roster loads, when it fails, or when no entry matches (an agent since removed from the pod), the line shows <span class="cd">agentName</span> as recorded, e.g. <span class="cd">scout</span>. The roster never blocks the page.</li><li><b>The trigger reads as a phrase after the status:</b> mention → answered a mention; heartbeat → ran on its schedule; task.assigned → picked up a task; chat.message → replied in chat; pod.join → welcomed someone to the pod; first_contact → said hello for the first time; manual → was run by hand. A value we do not know shows raw.</li><li><b>Counts are plural and grouped:</b> <span class="cd">1 turn · 900 tokens</span>, <span class="cd">2 turns · 13,951 tokens</span>, numbers formatted for the reader's language.</li><li><b>The foot carries the record details</b>, muted and small, under a hairline: the retention sentence, then <span class="cd">Run &lt;id&gt;</span> in mono. A first-time reader meets the answer before the storage policy.</li><li><b>Unchanged:</b> the size-limit notice, every turn, its model line and every tool call with its broker trail (grant, credential owner). Those belong to the connector lane.</li></ul><h3>Each state, one line</h3><table class="ctl"><tr><td>Loaded, roster matched</td><td><b>Drawn</b> at 390 and 1440. Display name, plain status line, grouped counts, foot after the turns.</td></tr><tr><td>Before</td><td><b>Drawn</b> at 390. Today's page: “Run trace”, retention first, raw id lowercase, raw run id in the card.</td></tr><tr><td>Roster loading / failed / no match</td><td><b>Not drawn.</b> Same page; the first line shows the recorded <span class="cd">agentName</span>.</td></tr><tr><td>Unknown trigger</td><td><b>Not drawn.</b> <span class="cd">Succeeded · future-trigger</span>, the raw value.</td></tr><tr><td>Loading, error, running</td><td><b>Not drawn.</b> They keep prod's status line, alert with Try again, and Refresh trace.</td></tr></table></div>
</div>
</section>

<section class="surf" id="s-firstrun">
<div class="shead"><h2>First run</h2><span class="route">/v2/pods/:id · Scout welcome + Guide dialog</span><div class="nums"><span class="num">helper words welcome <b>–</b> → <i>16</i></span><span class="num">dialog <b>–</b> → <i>68</i></span><span class="num">scroll 390 <b>–</b> → <i>1.0×</i></span></div></div>
Expand Down
22 changes: 12 additions & 10 deletions frontend/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"runTrace": {
"title": "Run trace",
"title": "How this reply was made",
"back": "Back to pod",
"view": "How this reply was made",
"retention": "Cards have a 30-day default retention. Pod policy and storage limits can change it. This trace persists after the card expires.",
"runId": "Run {{id}}",
"loading": "Loading run trace…",
"access": "This trace is unavailable, or you no longer have access to its pod.",
"error": "Could not load the run trace. Try again.",
"retry": "Try again",
"counts": "Recorded turns: {{turns}} · {{tokens}} tokens",
"counts_one": "{{count}} turn · {{tokens}} tokens",
"counts_other": "{{count}} turns · {{tokens}} tokens",
"stopped": "Stopped: {{kind}}",
"running": "This run is still in progress.",
"refresh": "Refresh trace",
Expand All @@ -31,14 +33,14 @@
"failed": "Failed",
"interrupted": "Interrupted"
},
"trigger": {
"mention": "Mention",
"heartbeat": "Heartbeat",
"task.assigned": "Task assignment",
"chat.message": "Chat message",
"pod.join": "Pod join",
"first_contact": "First contact",
"manual": "Manual"
"triggerPhrase": {
"mention": "answered a mention",
"heartbeat": "ran on its schedule",
"task.assigned": "picked up a task",
"chat.message": "replied in chat",
"pod.join": "welcomed someone to the pod",
"first_contact": "said hello for the first time",
"manual": "was run by hand"
},
"outcomes": {
"ok": "ok",
Expand Down
21 changes: 11 additions & 10 deletions frontend/src/i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"runTrace": {
"title": "运行轨迹",
"title": "这条回复是怎么来的",
"back": "返回 Pod",
"view": "这条回复是怎么来的",
"retention": "卡片默认保留30天,Pod 策略和存储限制可能改变期限。卡片过期后,运行轨迹仍会保留。",
"runId": "运行 {{id}}",
"loading": "正在加载运行轨迹…",
"access": "此轨迹不可用,或你已无权访问对应的 Pod。",
"error": "无法加载运行轨迹,请重试。",
"retry": "重试",
"counts": "已记录{{turns}}轮 · {{tokens}}个 token",
"counts_other": "{{count}}轮 · {{tokens}}个 token",
"stopped": "停止原因:{{kind}}",
"running": "此运行尚未结束。",
"refresh": "刷新轨迹",
Expand All @@ -31,14 +32,14 @@
"failed": "失败",
"interrupted": "已中断"
},
"trigger": {
"mention": "提及",
"heartbeat": "心跳",
"task.assigned": "任务分配",
"chat.message": "聊天消息",
"pod.join": "加入 Pod",
"first_contact": "首次联系",
"manual": "手动"
"triggerPhrase": {
"mention": "回应了一次@提及",
"heartbeat": "按计划运行",
"task.assigned": "领取了一项任务",
"chat.message": "在聊天中回复",
"pod.join": "欢迎新成员加入 Pod",
"first_contact": "第一次打招呼",
"manual": "由人手动运行"
},
"outcomes": {
"ok": "成功",
Expand Down
Loading
Loading