Skip to content

fix(app): sync chat when returning from background#13632

Open
nnsdev wants to merge 1 commit intoanomalyco:devfrom
nnsdev:improve-chat-refresh
Open

fix(app): sync chat when returning from background#13632
nnsdev wants to merge 1 commit intoanomalyco:devfrom
nnsdev:improve-chat-refresh

Conversation

@nnsdev
Copy link

@nnsdev nnsdev commented Feb 14, 2026

What does this PR do?

When using opencode web and using it over a mobile phone, connectivity is not getting restored correctly if the phone locks or puts the browser into the background, forcing the user to full refresh the page. By tracking visibility state as well as using the page lifecycle API's freeze and resume allows us to correctly restore connection.

Fixes #7990 point "Maintaining connections while in the background (preventing disconnection)."

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Tests ran on my local environment using bun run dev web and my mobile phone on both mobile and wifi connections, attempting both tests on screen locking as well as browser going into the background.

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Poor mobile web experience.

1 participant

Comments