web: shared chat stars, pipeline mini graphs and agent questions

- Persist chat stars in the operator-session registry (chat_star) so every
  browser/device shows the same Starred group; migrate old local stars once.
- Add a compact pipeline graph shape to list responses and draw a lightweight
  list miniature; replace the cryptic id/version line with the stage count.
- Surface OpenCode form questions as a chat card (chat_answer), replay a
  pending form to late subscribers, and notify for background questions.
- Make the mobile dock's Search cell equal to every destination, keep the
  tab row visible with 100svh, and let Source use the full pane height.
- Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie
  with Expires so Remember me survives app/link launches.
- Keep shipped starters and the skill agnostic: no repository paths, project
  areas or personal device commands; add Diagnose/Fix and Research starters.
- Refresh the installed skill and document the new browser conventions.
This commit is contained in:
2026-10-20 03:11:37 +01:00
parent caae8a8038
commit 526c19fc21
46 changed files with 1547 additions and 611 deletions
+19
View File
@@ -69,6 +69,7 @@ import {
TURN_PHASE_WAITING,
appendChatNotice,
applyChatEvent,
applyChatForm,
applyChatOverrides,
applyChatPermission,
approvalCard,
@@ -1939,3 +1940,21 @@ test("the C13 wording matches the Android sources verbatim", () => {
assert.equal(sessionActivityBadge(sessionActivity(false, false), true), "Open");
assert.equal(sessionActivityBadge(sessionActivity(false, false), false), "Idle");
});
test("applyChatForm keeps one pending question and clears it on resolve", () => {
const form = { id: "f1", session_id: "s1", kind: "question", title: "Pick", fields: [] };
let thread = newChatThread("s1");
thread = applyChatEvent(thread, { kind: "form", session_id: "s1", form }, 1);
assert.equal(thread.form?.id, "f1");
assert.equal(thread.form?.title, "Pick");
// A different form replaces the card; the old id cannot revive.
thread = applyChatForm(thread, { id: "f2", session_id: "s1", title: "Next" });
assert.equal(thread.form?.id, "f2");
thread = applyChatForm(thread, { id: "f1", session_id: "s1", resolved: true });
assert.equal(thread.form?.id, "f2");
thread = applyChatForm(thread, { id: "f2", session_id: "s1", resolved: true });
assert.equal(thread.form?.id, "f2");
assert.equal(thread.form?.resolved, true);
thread = applyChatForm(thread, { id: "f2", session_id: "s1", cancelled: true });
assert.equal(thread.form, null);
});