Skip to content

Fix mobile chat navigation and AI credit options - #1615

Merged
joepio merged 2 commits into
developfrom
codex/mobile-chat-resource-links
Sep 22, 2026
Merged

joepio merged 2 commits into
developfrom
codex/mobile-chat-resource-links

Conversation

@joepio

@joepio joepio commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Opening a resource link in mobile AI chat dismisses the full-screen panel, including when that resource is already open behind it. Desktop chat stays open and reopening mobile chat retains the conversation. The mobile history guard checks the URL to avoid navigating back from the destination.

AI credits now appear only inside AI Chat options, alongside a Get more credits link to the configured portal. The balance shows fractional credits and distinguishes monthly allowance from purchased credits. Opening options refreshes the account balance without caching.

Hosted stream completion, cancellation and errors notify the balance hook. This fixes the missed refresh when the AI SDK cancels its response reader. One delayed refresh allows server metering to settle, without ongoing polling.

Validation: all 8 Chromium mobile-chat tests passed with zero retries; 7 focused credit/stream/hook unit tests passed; app and E2E typechecks and full workspace lint/format checks passed. The earlier resource-link change also passed 6 focused component/history tests. Account/provider responses are mocked; live billing and physical mobile keyboards were not exercised.

@joepio joepio changed the title Close mobile AI chat when opening resource links Fix mobile chat navigation and AI credit options Sep 21, 2026
@joepio
joepio merged commit 00f11ae into develop Sep 22, 2026
9 checks passed
@joepio
joepio deleted the codex/mobile-chat-resource-links branch September 22, 2026 07:47
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.

1 participant