Skip to content

feat(ui): interleaved sidebar zone with custom session icons and drag ordering - #110682

Merged
steipete merged 11 commits into
mainfrom
claude/sidebar-session-icons-910968
Jul 18, 2026
Merged

steipete merged 11 commits into
mainfrom
claude/sidebar-session-icons-910968

Conversation

@steipete

@steipete steipete commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Pinned sessions promoted a conversation into the sidebar, but they read like list rows under a "PINNED" label rather than first-class sidebar entries, they had no identity of their own, and nothing in the top zone could be arranged. This PR makes the sidebar's top zone one coherent surface: nav pages and pinned sessions interleave in a single drag-ordered list under a fixed Home row, every pinned session can carry a custom icon (user-picked or agent-drawn), and entries move — drag a session up to pin it in place, drag a page or pinned session down into the session list to hide/unpin it (pages come back from the pen menu on the Pages header).

Why This Change Was Made

Icons (server-side, protocol, agent surface)

  • Sessions get an optional icon string: one emoji grapheme, name:<id> from a curated 12-icon UI registry, or svg:<svg …> drawn by an agent. The shared parser/sanitizer lives in packages/gateway-protocol/src/session-icon.ts; the SVG sanitizer is a strict hand-written tokenizer (whitelisted elements/attributes only; no scripts, handlers, hrefs, url()/data:, DOCTYPE, comments, namespaces; paint values restricted; canonical reserialization; the 4 KiB cap is enforced on the canonical serialized form since entity re-encoding can expand input). The UI re-validates before rendering SVG.
  • Additive sessions.patch param + row/event projection; write scope matches the other chat-organization fields. icon persists like pinnedAt and survives list projection, sessions.changed events, reset, and compaction. Swift protocol client regenerated.
  • The agent sessions tool's patch action gains icon, so agents can pick or draw one.
  • The session "…" menu gains "Change icon": arrow-key-navigable curated grid, custom-emoji input, Remove icon.

Interleaved zone (UI-local, synced prefs)

  • sidebarPinnedRoutes is replaced by ordered sidebarEntries (route:<id> / session:<key>) in the gateway-synced ui.prefs, with a one-time read migration from the legacy key. Home is fixed and never in the list.
  • reconcileSidebarZone renders valid routes plus currently-pinned sessions in entry order, appends externally pinned sessions, and — on canonical writes — preserves entries whose sessions are not loaded in the current view (other agents, loading caches), so synced cross-agent order cannot be corrupted by a partial view.
  • Drag behaviors: reorder anything in the zone (insertion indicators); drag a session from Threads into the zone → pins and inserts (the slot is persisted only after the pin patch lands, recomputed against the then-current order); drag a page into the session list → hidden (pen menu restores); drag a pinned session down → unpinned. Unpinning from any sidebar surface — including archiving a pinned session, which implicitly unpins server-side — retires the persisted slot.
  • Pinned rows keep nav-item visual parity from the icon slice: 16 px icon slot, same gap/colors/heights, no timestamps, state badges and hover actions retained; they stay outside the pagination budget and first in keyboard selection order.

User Impact

The sidebar's top zone is now fully yours: pages and pinned conversations mix in one ordered list, each pinned chat has a cute icon (or one an agent drew), and everything rearranges by drag. Hidden pages return via the pen menu.

Zone with icons Reordered by drag Page hidden by drag Icon picker
zone reorder hidden picker

Evidence

  • Backend: node scripts/run-vitest.mjs packages/gateway-protocol/src/session-icon.test.ts src/gateway/sessions-patch.test.ts src/agents/tools/sessions-tool.test.ts — 12 + 86 + 10 green (hostile-SVG matrix incl. canonical-expansion byte-cap regression).

  • UI: node scripts/run-vitest.mjs ui/src/lib/sidebar-zone.test.ts ui/src/components/app-sidebar.test.ts ui/src/components/session-menu.test.ts ui/src/app/settings.node.test.ts ui/src/app/server-prefs.test.ts ui/src/app-navigation-groups.test.ts — 209+ green, incl. interleave order, drag reorder/pin/hide writes, unknown-agent slot preservation, prune-on-unpin.

  • Live: drag-reorder, drag-hide, and drag-unpin exercised against pnpm dev:ui:mock via Playwright (screenshots above; entry-state dumps asserted).

  • Perf: barrel import of gateway-protocol removed from startup JS — 12 requests / 291.4 KiB gzip (limits 18 / 310); CSS budget green on the merge tree (36.5 KiB vs 38.0 limit).

  • Six autoreview rounds (Codex/Sol, xhigh); every accepted finding fixed in dedicated commits (unknown-slot preservation, unpin/archive pruning, reset canonical filtering, SVG canonical byte cap, pin-ack write ordering, self-drop bubbling); one consciously rejected edge (Sessions-page unpin relies on documented known-unpinned pruning).

  • Full CI green on head c24719c: run 29650964215 (all lanes incl. QA smoke, lint, dependencies, bundled-protocol).

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 18, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 18, 2026, 8:11 AM ET / 12:11 UTC.

Summary
The branch adds persistent session icons to sessions.patch, the sessions agent tool, gateway events and projections, then renders named icons, emoji, or sanitized SVG in pinned sidebar rows and the session menu.

PR surface: Source +919, Tests +212, Other +2. Total +1133 across 40 files.

Reproducibility: not applicable. as a bug reproduction: this is a new UI and protocol capability. The submitted screenshots and focused tests provide a high-confidence demonstration of the intended picker and pinned-row behavior.

Review metrics: 1 noteworthy metric.

  • New durable icon contract: 1 gateway field, 1 sessions-tool parameter, 1 persisted session field. The feature crosses protocol, agent API, persistence, realtime projection, and UI rendering, so its supported formats become a compatibility and security commitment.

Stored data model
Persistent data-model change detected: serialized state: packages/gateway-protocol/src/schema/sessions.ts, serialized state: packages/gateway-protocol/src/session-icon.test.ts, serialized state: packages/gateway-protocol/src/session-icon.ts, serialized state: src/agents/tools/sessions-tool.test.ts, serialized state: src/agents/tools/sessions-tool.ts, serialized state: src/config/sessions/types.ts, and 20 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Obtain owner approval to constrain or accept the agent-authored SVG contract before merge.
  • [P2] If SVG remains, add a concise supported-format/threat-model contract and security-focused regression coverage for the accepted grammar.

Risk before merge

  • [P1] The feature makes arbitrary SVG persisted session metadata and renders it with unsafeHTML; a future parser gap or browser-SVG edge case would turn agent- or operator-written session state into a Control UI security boundary.
  • [P1] The additive gateway and sessions-tool fields create a lasting public contract and persisted session-state shape; maintainers should explicitly accept the supported icon formats and their upgrade/compatibility expectations before merge.

Maintainer options:

  1. Constrain the icon contract before merge (recommended)
    Keep the visual feature but remove arbitrary SVG support so persisted icons remain curated names or validated single emoji.
  2. Approve and own the SVG contract
    Retain arbitrary sanitized SVG only with explicit security/product approval for the persistent agent-writable markup boundary.
  3. Pause the rich-icon extension
    Close or split the PR if neither the constrained icon feature nor the SVG security contract has an owner.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Remove the svg: session-icon format from the protocol, sessions tool, persistence normalization, and UI renderer; retain curated named icons and one-grapheme emoji with focused regression coverage.

Next step before merge

  • The remaining blocker is an explicit maintainer choice about a new security-sensitive, persisted agent-facing API contract; the protected maintainer label also requires human handling.

Maintainer decision needed

  • Question: Should persisted session icons accept agent-authored SVG rendered through unsafeHTML, or should the supported contract be limited to curated names and single emoji?
  • Rationale: This is a durable agent-writeable protocol and stored-state API with a new markup-sanitization boundary; implementation tests cannot choose the product’s acceptable security envelope.
  • Likely owner: steipete — The current head establishes the cross-surface contract and is the clearest available routing signal, though current-main ownership history remains unconfirmed.
  • Options:
    • Limit icons to names and emoji (recommended): Remove the svg: format and keep the picker plus agent support restricted to the curated registry and one emoji grapheme.
    • Accept the SVG security boundary: Keep svg: only after the responsible owners explicitly approve the supported SVG subset, threat model, and ongoing audit responsibility.

Security
Needs attention: The patch creates a new persisted, agent-writable SVG-to-unsafeHTML security boundary that needs explicit owner approval even though the included rejection tests cover several hostile inputs.

Review details

Best possible solution:

Decide whether OpenClaw should support arbitrary agent-drawn SVG in session state; if not, ship the proven named-icon and single-emoji picker path only, and keep the gateway/tool contract limited to those formats.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction: this is a new UI and protocol capability. The submitted screenshots and focused tests provide a high-confidence demonstration of the intended picker and pinned-row behavior.

Is this the best way to solve the issue?

Unclear. The named-icon and emoji path is a narrow maintainable solution, while arbitrary persisted SVG adds a security-sensitive public contract that needs an explicit owner decision before it can be judged the best solution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 74880cb56f9e.

Label changes

Label changes:

  • add P2: This is a normal-priority UI feature with a meaningful cross-surface contract and no demonstrated active user outage.
  • add merge-risk: 🚨 compatibility: The PR adds durable sessions.patch and sessions-tool icon formats that become part of the gateway and stored-session contract.
  • add merge-risk: 🚨 security-boundary: Agent- and operator-written SVG is sanitized then rendered through unsafeHTML, creating a new persisted markup trust boundary.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.

Label justifications:

  • P2: This is a normal-priority UI feature with a meaningful cross-surface contract and no demonstrated active user outage.
  • merge-risk: 🚨 security-boundary: Agent- and operator-written SVG is sanitized then rendered through unsafeHTML, creating a new persisted markup trust boundary.
  • merge-risk: 🚨 compatibility: The PR adds durable sessions.patch and sessions-tool icon formats that become part of the gateway and stored-session contract.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body supplies directly relevant before/after sidebar and picker screenshots from the mock Control UI plus focused test output; the screenshots substantiate the visible UI result, though they do not replace security-contract review.
Evidence reviewed

PR surface:

Source +919, Tests +212, Other +2. Total +1133 across 40 files.

View PR surface stats
Area Files Added Removed Net
Source 28 924 5 +919
Tests 11 217 5 +212
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 40 1143 10 +1133

Security concerns:

  • [medium] Treat persisted SVG rendering as a supported security boundary — ui/src/components/session-icon-registry.ts:48
    svg: session metadata is accepted from the gateway and agent tool, stored with the session, then rendered through unsafeHTML. The hand-written sanitizer is therefore a permanent security-critical parser contract rather than ordinary UI formatting.
    Confidence: 0.89

What I checked:

  • New agent-writable protocol and persisted state surface: The patch adds icon to the public sessions.patch schema, stores it on SessionEntry, exposes it in gateway rows/events, preserves it across reset and checkpoint restore, and accepts it from the sessions tool. (packages/gateway-protocol/src/schema/sessions.ts:364, 5b1b01db74b6)
  • Rich markup reaches an unsafe renderer: The new UI registry revalidates svg: input and passes the parsed SVG string to Lit unsafeHTML; the hand-written protocol tokenizer is therefore a security boundary for persisted, agent-writable session metadata. (ui/src/components/session-icon-registry.ts:39, 5b1b01db74b6)
  • Current main lacks the proposed icon patch path: Current main projects existing organization fields such as label and category in projectSessionsPatchEntry, but contains no icon normalization or persistence branch, so this is not obsolete or already implemented. (src/gateway/sessions-patch.ts:6, 74880cb56f9e)
  • Submitted behavior proof is directly relevant: The PR body includes before/after sidebar and picker screenshots captured from the mock Control UI, and describes focused gateway, tool, reconciliation, sidebar, and menu tests. (ui/src/components/app-sidebar-session-list.ts:88, 5b1b01db74b6)
  • Repository policy treats persisted session state and new security-sensitive surfaces as compatibility-sensitive: The reviewed root policy requires whole-surface review, explicit owner consideration for larger behavior/security work, and careful treatment of persisted session state and fallback/security boundaries. (AGENTS.md:8, 74880cb56f9e)

Likely related people:

  • steipete: Authored the current head commit spanning the gateway protocol, session persistence, sessions tool, and Control UI; broader current-main ownership history could not be established from the available read-only command environment. (role: recent cross-surface contributor; confidence: low; commits: 5b1b01db74b6; files: packages/gateway-protocol/src/session-icon.ts, src/gateway/sessions-patch.ts, ui/src/components/session-icon-registry.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b1b01db74

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3 to +6
import {
normalizeSessionIconInput,
parseSessionIcon,
} from "../../../packages/gateway-protocol/src/index.js";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Import icon helpers from the leaf module

When the Control UI sidebar loads, app-sidebar-session-list.ts imports this registry, so this value import executes the gateway-protocol barrel. That barrel imports the full schema/validator graph (packages/gateway-protocol/src/index.ts pulls in protocol-validator and the schema registry), while nearby UI code already documents that the barrel/typebox runtime must stay out of normal startup (ui/src/components/session-row-badges.ts:2). This adds a large startup dependency just to parse icons; import session-icon.js directly here and in session-menu.ts instead.

Useful? React with 👍 / 👎.

@steipete steipete changed the title feat(ui): custom session icons with agent-drawable SVG and nav-parity pinned rows feat(ui): interleaved sidebar zone with custom session icons and drag ordering Jul 18, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb973d4d4c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const EXTENDED_PICTOGRAPHIC_RE = /\p{Extended_Pictographic}/u;
const SVG_PREFIX = "svg:";
const SVG_MAX_BYTES = 4096;
const graphemeSegmenter = new Intl.Segmenter(undefined, { granularity: "grapheme" });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid crashing when Intl.Segmenter is unavailable

In browsers or WebViews without Intl.Segmenter, this top-level construction throws during module evaluation; the sidebar imports this helper through ui/src/components/session-icon-registry.ts, so the Control UI can fail to start before any fallback icon is rendered. Nearby UI code already treats Segmenter as optional with fallbacks (ui/src/app-navigation.ts:139 and ui/src/pages/plugins/presentation.ts:210), so this helper should do the same or fall back to a simpler grapheme check.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c24719cfdb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +99 to +101
sidebarEntries: prefSpec<string[]>({
extract: (value) => normalizeSidebarEntries(value) ?? undefined,
local: (settings) => settings.sidebarEntries,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Compare sidebar prefs by value before applying server deltas

When sidebarEntries is synced, unchanged arrays are still treated as changed in applyServerUiPrefs because the per-field delta check uses reference inequality (prefs[prefKey] !== lastSeen[prefKey] at ui/src/app/server-prefs.ts:272). If another server pref changes while this browser has an unpushable/local-only sidebar order, the unchanged server sidebarEntries array is included in changed and serverPrefsLocalPatch applies it, reverting the local sidebar edit; the existing sync comment says unchanged fields must not do that. Use the same value comparison here before adding array-valued prefs.

Useful? React with 👍 / 👎.

Comment on lines +264 to +265
/** Custom sidebar icon in the format accepted by the gateway protocol session-icon helper. */
icon?: string;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Carry session icons through cron session rollovers

This adds icon as durable session management state, but the cron fresh-session path still only carries the older preference fields (FRESH_CRON_CARRIED_PREFERENCE_FIELDS in src/cron/isolated-agent/session.ts includes pinnedAt, label, and displayName, but not icon). For a pinned cron/scheduled session with a custom icon, the next forced/fresh rollover keeps the pin but silently drops the icon, unlike reset/compaction paths updated in this commit; classify icon with the carried cron preferences too.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 88e5af7 into main Jul 18, 2026
122 of 125 checks passed
@steipete
steipete deleted the claude/sidebar-session-icons-910968 branch July 18, 2026 16:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 19, 2026
… ordering (openclaw#110682)

* feat(ui): custom session icons with agent-drawable SVG and nav-parity pinned rows

* wip: slice-2 interleaved sidebar zone (pre-review)

* fix(ui): trim icon exports, bypass protocol barrel in startup bundle, regen Swift protocol client

* fix(ui): preserve unknown-agent zone entries on writes, prune entries on any unpin

* fix(ui): reset keeps unloaded session slots; enforce SVG byte cap on canonical form

* fix(ui): archiving a pinned session retires its sidebar zone slot

* fix(ui): persist drag-pinned zone slot only after the pin patch lands

* fix(ui): recompute drop insertion against freshest zone order on pin ack

* fix(ui): consume self-drop events before the zone bailout

* docs(ui): note the non-sidebar unpin pruning contract on pruneSidebarSessionEntry

* refactor(ui): extract pure session-tree projection; drop unused zone type export
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
… ordering (openclaw#110682)

* feat(ui): custom session icons with agent-drawable SVG and nav-parity pinned rows

* wip: slice-2 interleaved sidebar zone (pre-review)

* fix(ui): trim icon exports, bypass protocol barrel in startup bundle, regen Swift protocol client

* fix(ui): preserve unknown-agent zone entries on writes, prune entries on any unpin

* fix(ui): reset keeps unloaded session slots; enforce SVG byte cap on canonical form

* fix(ui): archiving a pinned session retires its sidebar zone slot

* fix(ui): persist drag-pinned zone slot only after the pin patch lands

* fix(ui): recompute drop insertion against freshest zone order on pin ack

* fix(ui): consume self-drop events before the zone bailout

* docs(ui): note the non-sidebar unpin pruning contract on pruneSidebarSessionEntry

* refactor(ui): extract pure session-tree projection; drop unused zone type export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant