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:
+16
-2
@@ -94,7 +94,7 @@ export function attentionBadgeLabel(count) {
|
||||
* An entry the operator explicitly dismissed never returns. A run status that
|
||||
* asks nobody is dropped, so the surface can only ever hold actionable work.
|
||||
*/
|
||||
export function attentionEntries(runs, dismissed) {
|
||||
export function attentionEntries(runs, dismissed, { since = 0 } = {}) {
|
||||
const dismissedKeys =
|
||||
dismissed instanceof Set ? dismissed : new Set(Array.isArray(dismissed) ? dismissed : []);
|
||||
return (runs ?? [])
|
||||
@@ -105,13 +105,16 @@ export function attentionEntries(runs, dismissed) {
|
||||
if (dismissedKeys.has(key)) return null;
|
||||
const title = String(run.title ?? "").trim();
|
||||
const finished = String(run.finished_at ?? "");
|
||||
const recency = finished.trim() !== "" ? finished : String(run.created_at ?? "");
|
||||
const at = Date.parse(recency);
|
||||
if (since > 0 && Number.isFinite(at) && at < since) return null;
|
||||
return {
|
||||
runId: run.id,
|
||||
pipeline: String(run.name ?? ""),
|
||||
label: title !== "" ? title : String(run.name ?? ""),
|
||||
kind,
|
||||
detail: attentionDetail(kind, run),
|
||||
recency: finished.trim() !== "" ? finished : String(run.created_at ?? ""),
|
||||
recency,
|
||||
key,
|
||||
};
|
||||
})
|
||||
@@ -124,6 +127,17 @@ export function attentionEntries(runs, dismissed) {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The start of the operator's local day in epoch ms. "Needs you" is a to-do list
|
||||
* for what changed now; yesterday's failures are history, not a badge that
|
||||
* follows every device and browser session for ever.
|
||||
*/
|
||||
export function startOfLocalDay(now = Date.now()) {
|
||||
const date = new Date(now);
|
||||
date.setHours(0, 0, 0, 0);
|
||||
return date.getTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Captures the entries shown when the sheet opens. Bulk dismissal uses this
|
||||
* snapshot so entries that arrive while the sheet is open are not removed. A
|
||||
|
||||
Reference in New Issue
Block a user