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:
@@ -157,6 +157,25 @@ func (h *chatHub) applyLocked(frame protocol.ChatEventFrame) {
|
||||
}
|
||||
turn.applyShell(frame.Shell)
|
||||
return
|
||||
case protocol.ChatEventForm:
|
||||
// A form/question likewise carries no message id. Keep the pending form
|
||||
// for a late subscriber; a resolved or cancelled form removes it.
|
||||
if frame.Form == nil || frame.Form.ID == "" {
|
||||
return
|
||||
}
|
||||
if room := h.rooms[frame.SessionID]; room != nil {
|
||||
next := room.forms[:0]
|
||||
for _, form := range room.forms {
|
||||
if form.ID != frame.Form.ID {
|
||||
next = append(next, form)
|
||||
}
|
||||
}
|
||||
room.forms = next
|
||||
if !frame.Form.Resolved && !frame.Form.Cancelled && len(room.forms) < 8 {
|
||||
room.forms = append(room.forms, *frame.Form)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
if frame.MessageID == "" {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user