Python
Grant-time presence notice renders as a quiet info line
Rohit C Prasadf679853c64f7
diff --git a/surfaces/gui/src/itemsFromMessages.test.ts b/surfaces/gui/src/itemsFromMessages.test.tsindex 524c18e9..2b296b37 100644--- a/surfaces/gui/src/itemsFromMessages.test.ts+++ b/surfaces/gui/src/itemsFromMessages.test.ts@@ -132,4 +132,19 @@ describe("itemsFromMessages mcp failure", () => {] as any);expect(items[0]).toEqual({ kind: "notice", tone: "warn", text: "something opaque went wrong" });});++ it("renders a project_presence notice as one quiet info line, never an error", () => {+ const items = itemsFromMessages([+ {+ role: "notice",+ kind: "project_presence",+ text: "“notes” already has project memory (3 entries) — bind it by name or start a session there to use it.",+ },+ ] as any);+ expect(items[0]).toEqual({+ kind: "notice",+ tone: "info",+ text: "“notes” already has project memory (3 entries) — bind it by name or start a session there to use it.",+ });+ });});diff --git a/surfaces/gui/src/itemsFromMessages.ts b/surfaces/gui/src/itemsFromMessages.tsindex 8d7e68bd..c060e455 100644--- a/surfaces/gui/src/itemsFromMessages.ts+++ b/surfaces/gui/src/itemsFromMessages.ts@@ -85,7 +85,11 @@ export function itemsFromMessages(messages: ConversationMessage[]): Item[] {// the `server` field existed) recover the name from their own text, so old// transcripts collapse too instead of keeping the wall of stderr.mcpNoticeItem(m)- : { kind: "notice", tone: "warn", text: "Error: " + (m.text || "unknown"), retriable: true },+ : m.kind === "project_presence"+ ? // Grant-time pointer (pass 20): the granted folder already has+ // memory/board — informational, one quiet line.+ { kind: "notice", tone: "info", text: m.text || "" }+ : { kind: "notice", tone: "warn", text: "Error: " + (m.text || "unknown"), retriable: true },);}// system messages are omitted; tool-result messages are folded into the tool row above