diff --git a/apps/mobile/src/features/hermes/HermesWorkspace.tsx b/apps/mobile/src/features/hermes/HermesWorkspace.tsx index d959789a16..13b19f1163 100644 --- a/apps/mobile/src/features/hermes/HermesWorkspace.tsx +++ b/apps/mobile/src/features/hermes/HermesWorkspace.tsx @@ -272,18 +272,11 @@ export function HermesMobileWorkspace({ mode = "full" }: { mode?: "full" | "list )} - - {mode === "full" && selection && ( + {mode === "full" && selection && ( + setSelection(null)} /> - )} - {(mode !== "full" || Platform.OS !== "android") && ( - void create()} - /> - )} - + + )} {error && } )} @@ -438,10 +431,7 @@ function HermesSessionList({ connection }: { connection: HermesConnection }) { className={inputClass} /> {AsyncResult.isFailure(result) && ( - <> - - registry.refresh(query)} /> - + )} {error && } @@ -450,7 +440,7 @@ function HermesSessionList({ connection }: { connection: HermesConnection }) { {AsyncResult.isInitial(result) ? "Loading sessions…" - : "No Hermes sessions. Use New task to start chatting."} + : "No Hermes sessions. Use New chat to start chatting."} } renderItem={({ item, index }) => ( diff --git a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx index 016ca57e80..2fd6aa14f5 100644 --- a/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx +++ b/apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx @@ -571,7 +571,11 @@ function AdaptiveWorkspaceLayoutContent( {conversationSource === "hermes" ? ( - + requestHermesSession((value) => value + 1)} + > + + ) : ( { expect(hermesErrorMessage("Error: Unknown request tag: hermes.write")).toContain( "Update and restart the T3 desktop app or server", ); + expect(hermesErrorMessage("Unknown request tag: hermes.read")).toContain( + "Update and restart the T3 desktop app or server", + ); }); it("merges overlapping transcript pages with stable message identities", () => { const older = hermesMessages({ diff --git a/packages/client-runtime/src/hermes.ts b/packages/client-runtime/src/hermes.ts index a26158afe6..ab5e5feb26 100644 --- a/packages/client-runtime/src/hermes.ts +++ b/packages/client-runtime/src/hermes.ts @@ -46,7 +46,7 @@ export function hermesPretty(value: unknown): string { } export function hermesErrorMessage(message: string): string { - if (/Unknown request tag: hermes\.(?:read|write|events)/i.test(message)) { + if (/unknown request tag:\s*hermes\.(?:read|write|events)/i.test(message)) { return "This T3 host is too old for native Hermes controls. Update and restart the T3 desktop app or server on the connected machine, then try again."; } return message;