Skip to content

The agent that grows with you

fix(desktop): adapt the read-only tile submit refusal to the accepted-identity contract (#94724). Upstream's guard returned void; the accepted-identity contract returns {runtimeSessionId, storedSessionId}, so the refusal now reports an unprovable binding (storedSessionId: null) and callers never report delivery for a refused submit.

LeonardoLGDSb1470760a655
diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
index 79764742e92..4bfe5da7398 100644
--- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
+++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.ts
@@ -464,7 +464,7 @@ export function useSessionTileDelegate({
if (isReadOnlyRuntimeId(runtimeId)) {
notify({ kind: 'info', message: translateNow('desktop.readOnlyTranscriptSendBlocked') })
- return runtimeId
+ return { runtimeSessionId: runtimeId, storedSessionId: null }
}
const storedSessionId = storedSessionIdForRuntime(runtimeId)