Multiplayer agent harness for work.
Wrap expanded pin text instead of truncating it to one line (#1530)
Joshua Franced50acdf3aef1
diff --git a/plugins/web-ui/src/chat.ts b/plugins/web-ui/src/chat.tsindex ad47700d8..b2c939b77 100644--- a/plugins/web-ui/src/chat.ts+++ b/plugins/web-ui/src/chat.ts@@ -1248,7 +1248,7 @@ export function createChatSurface(expanded? pins.map((p) =>- html`<div class="pinned-item" title=${p.text ?? p.preview ?? ""}>+ html`<div class="pinned-item"><span class="pinned-item-text">${linkifiedText(p.text ?? p.preview ?? `entry #${p.entrySeq}`)}</span>${p.text && p.preview ? html`<span class="pinned-item-preview">${linkifiedText(p.preview)}</span>` : nothing}</div>`,diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.cssindex 87709b3d6..3147244e5 100644--- a/plugins/web-ui/src/shell.css+++ b/plugins/web-ui/src/shell.css@@ -1588,23 +1588,20 @@ a.chat-row-open {}.pinned-item {display: flex;- align-items: baseline;- gap: 8px;+ flex-direction: column;+ gap: 2px;min-width: 0;font-size: 13px;}.pinned-item-text {- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ white-space: pre-wrap;+ overflow-wrap: anywhere;}.pinned-item-preview {color: var(--muted-foreground, #888);overflow: hidden;text-overflow: ellipsis;white-space: nowrap;- flex: 1;- min-width: 0;}.pinned-strip a {color: var(--primary);diff --git a/plugins/web-ui/test/css-vars.test.ts b/plugins/web-ui/test/css-vars.test.tsindex be87db656..86ee2ba24 100644--- a/plugins/web-ui/test/css-vars.test.ts+++ b/plugins/web-ui/test/css-vars.test.ts@@ -108,6 +108,16 @@ test("every drop zone the canvas renders has a positioning rule in shell.css", (assert.deepEqual(missing, [], "drop zones rendered with no .zone-<edge> rule (they collapse to 0×0)");});+test("expanded pins wrap their full text instead of truncating to one line", () => {+ const item = shellCss.match(/\.pinned-item \{[^}]+\}/)?.[0] ?? "";+ assert.match(item, /flex-direction:\s*column;/);+ const text = shellCss.match(/\.pinned-item-text \{[^}]+\}/)?.[0] ?? "";+ assert.match(text, /white-space:\s*pre-wrap;/);+ assert.match(text, /overflow-wrap:\s*anywhere;/);+ assert.doesNotMatch(text, /text-overflow|nowrap/);+ assert.doesNotMatch(tsSource, /class="pinned-item" title=/);+});+test("chat shadows stay limited to elevated surfaces and subtle activity hover glow", () => {const elevated = [".pinned-strip", ".message-stack .user-row.stuck > .user-bubble"];const rules = shellCss.replace(/\/\*[\s\S]*?\*\//g, "");