mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-08-07 07:45:54 +00:00
* feat(web-shell): add contextual task panels * fix(web-shell): harden contextual task panels * fix(web-shell): preserve side task titles * fix(web-shell): address review feedback on context panels PR (#7929) - Add POST /session/:id/side-task to telemetry route catalog (51 routes) - Increase SDK browser bundle size limit to 184KB - Fix duplicated data-testid="chat-pane" → "chat-pane-container" on container - Gate sourceType behind session_source_metadata capability check - Add removeSession cleanup after killSession in !res.writable path - Add i18n key sideTask.renameFailed for error fallback - Add unit tests for selectVisibleHistoryRecords invariant * fix(cli): update telemetry-catalog route drift guard to 51 routes (#7929) * fix(web-shell): address review feedback round 2 on context panels PR (#7929) - Fix /fork sider discarding createSideTask() return value: show toast when side tasks are unavailable - Fix layout feedback loop: availableWidth no longer depends on environmentPanelVisible since the CSS overlay does not change the chat pane DOM width - Remove dead environmentPanelSuppressed state (never set to true) - Restore setArtifactPanelOpen(false) in closeArtifactPanelTab when the last tab is closed - Extract agentDisplayName(task) to a local variable to avoid triple invocation per render * fix(web-shell): dedupe completed background agents in environment panel (#7929) getEnvironmentAgentTasks correlated a transcript tool card with the live /tasks snapshot only on toolUseId, the notification taskId, and a <subagentType>-<callId> derived id. A completed background agent can lose that linkage (its live task carries no usable toolUseId and its daemon id is general-purpose-<internalId>), so the trailing loop appended the live task as a second entry. Add a conservative content fallback (prompt, or description+subagentType) mirroring the daemon's legacy resolver. * feat(web-shell): support side tasks during active turns * fix(web-shell): deduplicate completed subagents and gate sourceType on capability (#7929) * fix(web-shell): restore background agent reconciliation and fix agent dedupe (#7929) Restore the one-shot subagent reconciliation for inline background Agent tool cards. Persisted notification records do not always retain a toolUseId, so the SSE discrete-notification path alone can leave a card stuck in Running; the documented fallback resolves pending cards through the subagent endpoint after catch-up, reconnect, and terminal notifications. Also stop the loose description content fallback in getEnvironmentAgentTasks from claiming a live task that another transcript tool call already links precisely (by toolUseId, message taskId, or derived id). Two agents sharing a description previously collapsed into one: the fallback stole the linked task, its owner re-matched the same task, and the orphan was dropped. * fix(web-shell): address critical review feedback on context panels (#7929) * fix(web-shell): reconcile side-task state across sessions and listings (#7929) * fix(web-shell): preserve contextual panel fallbacks --------- Co-authored-by: 钉萁 <dingqi.jww@alibaba-inc.com> Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com> Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com> Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com> Co-authored-by: qwen-code-ci-bot <qwen-code-ci-bot@users.noreply.github.com> Co-authored-by: Qwen Code Autofix <qwen-code-autofix@users.noreply.github.com> Co-authored-by: Qwen Code Bot <qwen-code-bot@users.noreply.github.com>
201 lines
4.6 KiB
CSS
201 lines
4.6 KiB
CSS
.pane {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
height: 100%;
|
|
background: var(--background);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.paneEmbedded {
|
|
border: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.paneEmbedded .footer {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
/* On a multi-workspace pane, `--ws-accent` is set by a shared accent class
|
|
(workspaceAccent.module.css) and colorizes this divider into a per-workspace
|
|
strip; it falls back to the neutral border everywhere else, so single-
|
|
workspace panes are unchanged. */
|
|
border-bottom: 1px solid var(--ws-accent, var(--border));
|
|
background: color-mix(in srgb, var(--foreground) 3%, transparent);
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/* The `--ws-accent` variable that colorizes the divider above and the tag below
|
|
is set by a shared accent class from workspaceAccent.module.css (also used by
|
|
the composer chip), applied to `.header` when the pane has a workspace. */
|
|
|
|
/* Which workspace this pane's session lives in — a compact colored chip at the
|
|
start of the header, shown only on a multi-workspace daemon. The dot never
|
|
shrinks, so panes stay distinguishable by color even when the name and the
|
|
session title both ellipsize on a narrow split; the full cwd is in the
|
|
native title tooltip. */
|
|
.workspaceTag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
max-width: 50%;
|
|
padding: 2px 8px 2px 6px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--ws-accent) 14%, transparent);
|
|
color: color-mix(in srgb, var(--ws-accent) 70%, var(--foreground));
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.workspaceTagDot {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 7px;
|
|
border-radius: 999px;
|
|
background: var(--ws-accent);
|
|
}
|
|
|
|
.workspaceTagText {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Per-pane connection-loss indicator: each pane has its own daemon connection,
|
|
so a drop on one shouldn't silently leave stale messages with no signal. */
|
|
.connectionError {
|
|
flex: 0 0 auto;
|
|
padding: 6px 10px;
|
|
background: var(--warning-bg);
|
|
border-bottom: 1px solid var(--warning-border);
|
|
color: var(--warning-color);
|
|
font-size: 12px;
|
|
}
|
|
.connectionErrorText {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.title {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
.headerActions {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.headerActionsInline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.headerActionSlot {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Keep host actions mounted while collapsed so stateful actions survive
|
|
resize. Absolutely positioned so they do not affect flex layout. */
|
|
.headerActionsHostHidden {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
pointer-events: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* The built-in maximize/close controls used to be direct children of `.header`
|
|
(gap 8px); keep that spacing now that they are grouped here. */
|
|
.headerTrailing {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.headerOverflowPanel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 4px;
|
|
padding: 2px;
|
|
}
|
|
|
|
.headerActionButton,
|
|
.closeButton,
|
|
.maximizeButton {
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: var(--muted-foreground);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.headerActionButton:hover,
|
|
.closeButton:hover,
|
|
.maximizeButton:hover {
|
|
color: var(--foreground);
|
|
background: color-mix(in srgb, var(--foreground) 8%, transparent);
|
|
}
|
|
|
|
/* The maximized pane keeps its toggle visually "active" so it's clear which
|
|
control returns to the tiled layout. */
|
|
.maximizeButton[aria-pressed='true'] {
|
|
color: var(--foreground);
|
|
background: color-mix(in srgb, var(--foreground) 10%, transparent);
|
|
}
|
|
|
|
/* The transcript takes the remaining height and scrolls independently per pane. */
|
|
.body {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.footer {
|
|
flex: 0 0 auto;
|
|
padding: 8px;
|
|
position: relative;
|
|
}
|
|
|
|
.approval {
|
|
margin-bottom: 8px;
|
|
}
|