Skip to content

The agent that grows with you

fix(desktop): land the hidden-row guard in carryForwardFailedProfileSessions

teknium14e940386a442
diff --git a/apps/desktop/src/store/session.ts b/apps/desktop/src/store/session.ts
index ec74421ac0e..12ea4965648 100644
--- a/apps/desktop/src/store/session.ts
+++ b/apps/desktop/src/store/session.ts
@@ -733,7 +733,13 @@ export function carryForwardFailedProfileSessions(
const carried: SessionInfo[] = []
for (const session of previous) {
- if (!failed.has(sidebarProfileKey(session)) || incomingIds.has(sessionListIdentity(session))) {
+ // A hidden row (canonical Bot Chat) is LISTED-NEVER by design: the
+ // failed-slice carry must not ride it back into the sidebar (#113273).
+ if (
+ session.hidden ||
+ !failed.has(sidebarProfileKey(session)) ||
+ incomingIds.has(sessionListIdentity(session))
+ ) {
continue
}