A local-first multi-agent app development platform, built on PenguinHarness
fix(web): at full screen the agents panel's composer stays in the transcript column
lmlihengd0dfc22c1444
diff --git a/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.md b/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.mdnew file mode 100644index 00000000..ba25a8dc--- /dev/null+++ b/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.md@@ -0,0 +1,19 @@+# At full screen, the agents panel's composer lines up with the subagent's transcript++- **Date:** 2026-10-13+- **Type:** fix+- **Scope:** `web`++[中文版](2026-10-13-agents-panel-fullscreen-composer.zh.md)++Ported from upstream PenguinHarness (#1050, commit `0e56dc5a`).++The agents panel lays the selected subagent's transcript out in the main conversation's reading+column, centered and capped at `max-w-3xl`, but its composer spanned the panel's whole width. In a+docked panel the two coincided, because the dock is narrower than the column. Once the dock went+full screen, the transcript stayed a centered column while the composer stretched across the+covered row: 1100px under a 768px column in a 1440px window, 1616px at 1920px. The composer now+sits in the transcript's column, as the main conversation's composer does, so a full-screen panel+reads like the conversation it covers. A docked panel is unchanged.++No API, wire format or stored data changes.diff --git a/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.zh.md b/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.zh.mdnew file mode 100644index 00000000..43c821c3--- /dev/null+++ b/changelog/unreleased/2026-10-13-agents-panel-fullscreen-composer.zh.md@@ -0,0 +1,13 @@+# 智能体面板全屏时,输入区与子会话对话对齐++- **Date:** 2026-10-13+- **Type:** fix+- **Scope:** `web`++[English](2026-10-13-agents-panel-fullscreen-composer.md)++移植自上游 PenguinHarness(#1050,提交 `0e56dc5a`)。++智能体面板把所选子会话的对话排在主对话的阅读列里(居中,限宽 `max-w-3xl`),输入区却铺满整个面板。停靠时两者重合,因为停靠栏比这一列窄;停靠栏全屏后,对话仍是居中的一列,输入区却横贯被覆盖的整行:1440px 窗口下是 768px 的列配 1100px 的输入区,1920px 下输入区宽达 1616px。现在输入区与主对话的输入区一样落在对话所在的列内,全屏的面板读起来与它覆盖的对话一致。停靠时的面板没有变化。++接口、线上格式与已存数据都没有变化。diff --git a/packages/web/src/features/chat/subagents-view.tsx b/packages/web/src/features/chat/subagents-view.tsxindex 689014a3..6aef370e 100644--- a/packages/web/src/features/chat/subagents-view.tsx+++ b/packages/web/src/features/chat/subagents-view.tsx@@ -424,59 +424,65 @@ function SubagentComposer({return (<div className="shrink-0 border-t border-gray-100 px-2 pb-2 pt-2 dark:border-gray-800/60">- <ChatInput- variant="subagent"- controlRef={controlRef}- status={running ? "running" : "idle"}- onSend={async (input: TaskInputPart[]) => {- const text = input- .filter((p): p is { type: "text"; text: string } => p.type === "text")- .map((p) => p.text)- .join("\n\n")- .trim();- if (!text) return false;- try {- await send(text);- return true;- } catch (err) {- sendFailure(err);- return false;- }- }}- onSteer={async (text: string) => {- try {- await send(text);- // steered/started/resumed alike: the message reached the child (the race where- // the round settled mid-send simply started the next one). The queued hint- // retires when the child's stream shows the delivered input.- return "queued";- } catch (err) {- sendFailure(err);- return "failed";- }- }}- steeringDeliveredCount={deliveredInputs}- onStop={async () => {- await abortSubagent(sessionId, childSessionId).catch(() => undefined);- }}- modelRef={modelRef}- models={models}- // Display: the user's pick for this child, else what the child actually runs at- // (spawn-pinned level, else the parent's effective level it inherited). A pick is- // PATCHed onto the child Session and applies from its next LLM request.- turnThinkingLevel={turnLevel || fallbackThinkingLevel}- onChangeTurnThinkingLevel={pinChildLevel}- {...(contextWindow !== undefined ? { contextWindow } : {})}- contextNow={contextNow}- vision={false}- approvalMode={approvalMode}- approvalModes={approvalModes}- sandbox={sandbox}- onChangePermission={onChangePermission}- modeSaving={modeSaving}- agents={[]}- skills={skills}- />+ {/* The transcript's reading column (MessageStream caps its messages at max-w-3xl), as the+ main conversation's composer does: a dock at full screen is as wide as the chat column+ or wider, and the composer must line up with the messages above it rather than span+ the surface. A docked panel is narrower than the cap, so there it changes nothing. */}+ <div className="mx-auto max-w-3xl">+ <ChatInput+ variant="subagent"+ controlRef={controlRef}+ status={running ? "running" : "idle"}+ onSend={async (input: TaskInputPart[]) => {+ const text = input+ .filter((p): p is { type: "text"; text: string } => p.type === "text")+ .map((p) => p.text)+ .join("\n\n")+ .trim();+ if (!text) return false;+ try {+ await send(text);+ return true;+ } catch (err) {+ sendFailure(err);+ return false;+ }+ }}+ onSteer={async (text: string) => {+ try {+ await send(text);+ // steered/started/resumed alike: the message reached the child (the race where+ // the round settled mid-send simply started the next one). The queued hint+ // retires when the child's stream shows the delivered input.+ return "queued";+ } catch (err) {+ sendFailure(err);+ return "failed";+ }+ }}+ steeringDeliveredCount={deliveredInputs}+ onStop={async () => {+ await abortSubagent(sessionId, childSessionId).catch(() => undefined);+ }}+ modelRef={modelRef}+ models={models}+ // Display: the user's pick for this child, else what the child actually runs at+ // (spawn-pinned level, else the parent's effective level it inherited). A pick is+ // PATCHed onto the child Session and applies from its next LLM request.+ turnThinkingLevel={turnLevel || fallbackThinkingLevel}+ onChangeTurnThinkingLevel={pinChildLevel}+ {...(contextWindow !== undefined ? { contextWindow } : {})}+ contextNow={contextNow}+ vision={false}+ approvalMode={approvalMode}+ approvalModes={approvalModes}+ sandbox={sandbox}+ onChangePermission={onChangePermission}+ modeSaving={modeSaving}+ agents={[]}+ skills={skills}+ />+ </div></div>);}