Skip to content

fix(desktop): refresh externally updated sessions - #40032

Closed
manualzuru wants to merge 1 commit into
NousResearch:mainfrom
manualzuru:fix/desktop-external-session-refresh
Closed

fix(desktop): refresh externally updated sessions#40032
manualzuru wants to merge 1 commit into
NousResearch:mainfrom
manualzuru:fix/desktop-external-session-refresh

Conversation

@manualzuru

@manualzuru manualzuru commented Jun 5, 2026

Copy link
Copy Markdown

Closed by author.

This PR was opened before the current public-contribution gate was in place. It needs to be re-audited and, if still valuable upstream, rebuilt as a clean generic contribution with no user-specific context, local incident details, private paths, logs, screenshots, or secret-like material.

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have labels Jun 5, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Strong overlap with #37766 — both add a Desktop read-repair/refresh loop to hydrate the open session when another client (Telegram/gateway) writes to the shared session DB, skipping while busy. Worth reconciling the two approaches.

Poll the currently opened stored Desktop session and refresh it on focus so messages written by Telegram/gateway or other surfaces appear without a manual reload.

Tests:
- npm run test:ui -- src/app/session/hooks/use-stored-session-refresh.test.tsx src/app/session/hooks/use-route-resume.test.tsx
- npm run type-check
- npm run build
@manualzuru
manualzuru force-pushed the fix/desktop-external-session-refresh branch from d9fee11 to 539a0d2 Compare June 5, 2026 20:24
@manualzuru manualzuru closed this Jun 12, 2026
@manualzuru
manualzuru deleted the fix/desktop-external-session-refresh branch June 12, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants