Skip to content

[upstream #23294] feat(mobile): show DeepSeek API balance - #270

Open
innocarpe wants to merge 10000 commits into
mainfrom
fix/mobile-deepseek-account-usage
Open

innocarpe wants to merge 10000 commits into
mainfrom
fix/mobile-deepseek-account-usage

Conversation

@innocarpe

@innocarpe innocarpe commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Upstream: stablyai#23294

ELI5

Mobile Home and Accounts show the DeepSeek balance supplied by the connected host. Balance and status updates use polite live regions. Malformed balance data now shows “Balance unavailable” instead of remaining on “Checking balance…”.

What Changed

  • Display DeepSeek host-snapshot usage on the Home usage card and Accounts screen.
  • Mark the primary balance/status and conditional error/status text as polite live regions on both screens.
  • Reuse the snapshot schema’s unknown-field types for optional DeepSeek fields, removing the old type assertion.
  • Distinguish malformed provider data from a missing initial balance request; keep malformed DeepSeek data isolated from other provider snapshots.
  • Render the real Home and Accounts components in tests for loading, unavailable, available, depleted, and refresh-error states.
  • Keep the view read-only: no mobile DeepSeek API request or credential storage.

Why

The host provider work is separate in stablyai#12873. This PR presents that data on mobile and exposes changes to accessibility services without changing layout or data ownership.

Linked Issue

Refs stablyai#12869; host provider dependency stablyai#12873.

Visual Proof

N/A for this follow-up — status labels and accessibility metadata, covered by component render tests. Device screen-reader behavior was not manually tested.

Testing

  • DeepSeek selector, Home/Accounts render, usage-state, and snapshot tests: 40 passed.
  • Mobile app TypeScript check, test-typecheck ratchet, changed-code quality gate, and whitespace check.
  • Full test TypeScript check remains red on existing test diagnostics; no changed component is referenced. Device VoiceOver/TalkBack validation and full mobile build were not run.

AI Disclosure

Implementation and verification assisted by OpenAI Codex.

Agent skill upstream boundary

  • Not applicable — mobile components and presentation logic only.

Checklist

  • Focused read-only mobile presentation change.
  • Host credentials and API ownership retained; folder/remote host snapshots supported.
  • Device accessibility verification.

@innocarpe innocarpe added the enhancement New feature or request label Sep 27, 2026
@innocarpe
innocarpe force-pushed the fix/mobile-deepseek-account-usage branch 2 times, most recently from 15eefdf to 00f0dd1 Compare September 29, 2026 08:57
@innocarpe
innocarpe force-pushed the fix/mobile-deepseek-account-usage branch from 00f0dd1 to 2798978 Compare October 22, 2026 02:31
@innocarpe
innocarpe force-pushed the fix/mobile-deepseek-account-usage branch 2 times, most recently from 4035ee9 to 43f30c8 Compare November 2, 2026 10:52
Kelvin Amoaba and others added 24 commits November 7, 2026 12:07
… session's late text (stablyai#39479)

* fix(mobile): show the phone speech download size and drop a cancelled session's late text

* fix(mobile): show the Android language download size too

* fix(mobile): keep a recognizer error raised while its start resolves, and read the download size aloud
…ablyai#39417)

* refactor(backend): use defining owners for orchestration and ACP startup

* test(orchestration): trim redundant observations and retain safety cases

* test(orchestration): seed restored sessions with one fixed operation clock
… app (stablyai#39492)

* fix(mobile): finish Android dictation on a call, alarm or leaving the app

A transient audio-focus loss (call, alarm, assistant) left the mic recording
silence, and pausing the activity closed the mic only to reopen it on resume,
splicing a silent gap into the dictation. Both now end the recording and emit
an interruption, so dictation finishes and inserts what was heard. The
dictation hook also finishes when the app goes to the background, which
covers iOS and shells without this native change.

* fix(mobile): keep a dictation that is waiting on the Android mic prompt

* fix(mobile): keep Android recording state consistent across the focus and JS threads

* refactor(mobile): name the Android pause path for what it does and stop retaking focus on resume

* fix(mobile): keep what the open mic heard when leaving during a pending host start

* fix(mobile): close the open mic at once when leaving during a pending host start

* fix(mobile): a second page capture end waits for the stop already in flight
* test: remove 262 low-value tests

* test: remove 665 low-value tests

---------

Co-authored-by: OrcaWin <[email protected]>
…yai#38807)

* fix(cursor): write workspace trust where cursor-agent reads it

cursor-agent names ~/.cursor/projects/<dir> by replacing every
non-alphanumeric character with '-', collapsing repeats, and trimming
dashes. Orca only replaced Windows-illegal characters, so paths with
'_', '.', spaces or non-ASCII got a marker cursor-agent never reads and
the trust menu appeared on every fresh worktree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(cursor): cover space, non-ASCII and Windows paths in the trust slug test

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Jinwoo-H <[email protected]>
* test: remove 124 low-value tests

* test: remove 125 low-value tests

---------

Co-authored-by: OrcaWin <[email protected]>
Jinjing and others added 27 commits November 8, 2026 00:16
* Allow interleaving projects and groups in sidebar

* Fix drag refs during render
* fix: align sidebar activity badge with visible agents

* fix: retain activity focus read ratchet entries
* rm doc

* wip

* wip

* wip

* wip

* wip

* Handle opening message receipt collisions
…e addresses, and --parent-environment (stablyai#39733)

* feat(cli): one enclosing-workspace rule, --environment local, and copyable workspace addresses

current/active and cwd inference now pick the innermost workspace of either kind (worktree or
folder workspace); at equal depth the caller terminal's own workspace wins, otherwise the choice
is refused as ambiguous. --environment local names this machine's own Orca over an ambient
ORCA_ENVIRONMENT or pairing code. worktree ps/show/current print an environment: line and an
address: line (JSON environment, address, addressUnavailable, parent) that always carries its
--environment, and name a parent's environment only when it is verified.

* test: answer the folder catalog read in agent launch cwd tests

* feat(cli): worktree rm refuses current/active and names the selector to pass

Removal needs an explicit workspace, as git worktree remove needs a path. The refusal runs before
rm decides between a worktree and a folder workspace, and reports what current resolves to now
(one selector, the ambiguous choices, or none) in text and as invalid_argument data.

* fix(cli): keep the remote-environment guidance when rm refuses current

* fix(cli): surface folder-catalog failures for omitted targets; no address for a duplicated folder parent

* fix(cli): surface a worktree-list failure for omitted browser and terminal targets too

* test(cli): folder rm refuses current/active before the folder removal path

* fix(cli): refuse a cwd owner whose folder host can't be derived instead of skipping it

* fix(cli): compare cwd owners by filesystem identity, refuse every equal-path tie, surface worktree-list failures

Paths on the caller's own filesystem compare by realpath (reusing resolveRealPathSync), so /tmp
and /private/tmp aliases find the deeper owner in both the folder prefilter and ranking; other
hosts' paths stay lexical. Equal-depth owners with different repo registrations now refuse without
a caller instead of picking by catalog order. An omitted target no longer swallows worktree.list
method_not_found; only the optional folder reads fall back.

* fix(cli): read the realpath helper from shared so the packaged CLI ships it

* refactor(cli): move the catalog row type and unresolved-owner refusal out of the selection/catalog cycle

* fix(cli): resolve every caller-filesystem workspace path, not only basename matches

A workspace registered through a differently named symlink was skipped by the basename gate.
Containment now realpaths cwd and each row on the caller's own filesystem once per command,
shared by the folder prefilter and ranking; folder hosts are derived first so another host's
paths are never resolved locally.

* test: answer the folder catalog read in the ambiguous orchestration-check caller test

* feat(cli): --parent-environment names where a worktree's parent lives

worktree create and worktree set take --parent-environment <local|saved id|name>
next to --parent-worktree. The parent is resolved in that environment only, and
sent to the child as a verified cross-store ref after the child's cross-machine
capability check. Without the flag, the parent stays in the child's environment;
active/current always mean this machine's own Orca.

Preflight failures happen before any change: environment_not_paired,
environment_unavailable, LINEAGE_PARENT_NOT_FOUND / LINEAGE_PARENT_AMBIGUOUS
naming the searched environment, and incompatible_runtime with data.environment
and data.requires.

* fix(cli): parent lookup errors name and list the environment searched

LINEAGE_PARENT_AMBIGUOUS and LINEAGE_PARENT_NOT_FOUND now always carry
data.environment and a listing command for the environment the parent was
looked up in, for parents in another environment and in the child's own. Steps
inherited from the runtime listed the caller's default route instead.

* docs(cli): a local address names the Orca that printed it
* Preserve the chat's history when forking

* Preserve fork receipts and finished conversation history

Save native-copy receipts on the real create path, retain standalone Codex copies and Claude compaction bridges, and omit unfinished helper output. Restore rewind read-error refusals and update the affected provider fixtures.

* Keep fork coverage tied to OpenCode's copied messages

* Preserve the actionable refusal when chat creation stops

* Keep completed helper answers when copying chat history

Follow spawning tools and active helpers to their descendants without making an omitted goal row invalidate a settled helper's independent output. Reuse the public copy-error distinction so private transcript exceptions stay behind the generic create refusal while authored fork errors remain actionable.

* Keep fork history stable with OpenCode 1.x

* Exclude later continuation notices from fork snapshots

* Keep fork continuation notices tied to retained work

* Keep fork catch-up recoverable and preserve copy cancellation

* Keep OpenCode coverage timeouts on the read refusal path
* feat(sidebar): simplify delete workspace dialog

Replace the "Don't ask again" checkbox with an "Always delete" option in a
split-button dropdown on the Delete button, matching the force-delete toasts.
Shorten the description and change-loss copy so the dialog reads lighter.

Co-authored-by: Copilot <[email protected]>

* fix(sidebar): keep delete change-loss warning protected and shown when status is unknown

Default Delete forces removal, so restore the permanent-loss notice while a
target's Git status is still checking or unavailable. Mark the dirty-change
hint as protected copy so language packs cannot replace the loss warning.

---------

Co-authored-by: Copilot <[email protected]>
* fix(settings): unify terminal theme pickers

Reuse the Appearance searchable selector and palette swatches while preserving imported-theme actions and independent terminal theme slots.

Co-authored-by: Copilot <[email protected]>

* fix(settings): don't replay a handled theme import after remount

Settings search unmounts the theme row, so the picker remounted with
handledImportSignal=0 and reopened at Imported without a new import.

---------

Co-authored-by: Copilot <[email protected]>
…blyai#39813)

Vitest rejects a console-log RPC still in flight when a worker tears
down, failing a shard whose tests all passed. Ignore only that rejection
(the lost line belongs to a finished file and passed-only shards drop
it anyway), and stop the two specs seen in CI from spawning real git and
wsl.exe in fire-and-forget background work.

Co-authored-by: OrcaWin <[email protected]>
…blyai#39814)

* test: remove 155 low-value tests and two relay checkpoints

* test: retain schema drift protection and remove dead imports

---------

Co-authored-by: OrcaWin <[email protected]>
…tablyai#39234)

* Open the new-tab landing when splitting a Chat UI pane

Splitting a chat with Cmd+D opened a terminal nobody asked for. The split now
opens an empty pane that shows the home-screen landing (New agent, New
Terminal, New Browser Tab, plus shortcuts); Cmd+W closes it. Chats in the
floating panel and inside terminal tabs keep their terminal split.

* Split landing review fixes: agent launch cancellation, browser policy, labels

- New Agent on the landing cancels like the keyboard shortcut when the user leaves the workspace or host
- Hide New Browser Tab where the creation policy hides it (paired web without streaming)
- Chat split actions read Split Right / Split Down; New Agent gets its own key
- Tour visibility reads the projection's existing group subscriptions

* Show the split landing only in panes a chat split opened

Other flows reserve an empty split group for content they already chose
(remote terminal splits, AI Vault resume, browser and source-control
opens). The landing, its Close collapse and the tour now apply only to
groups the chat split marked, kept in window-only state and dropped when
the group goes away.

* Move split landing marks with their groups on worktree rename

* Keep the rename test's chooser mark out of the cast fixture

* Read the landing's browser policy by workspace; keep Agent in the Japanese label

* Keep the passed split lesson in the agent sessions tour count

* Keep the workspace open on a waiting split landing when its last tab closes

* Keep a waiting split landing when its workspace is reopened; drop its close row when it is the only pane

* Let a waiting split landing satisfy automatic default seeding, not recovery

Restores main's agent-activation inventory gate (a chooser never bypasses
ownership checks). Each automatic default-surface decision (shared seeder,
deferred reseed, startup watcher, paired wake, stream bootstrap) now leaves
a waiting chooser in place, and the paired mirror keeps a marked chooser when
the host reports no tabs. Explicit launches and requested default tabs are
unchanged.

* Fill an emptied paired workspace with its waiting landings, layout and focus together

* Read landing labels through useTranslate for main's render-path ratchet

* Drop the split landing's subtitle
…events (stablyai#39826)

* fix(agent-hooks): let the last-status throttle apply to routine hook events

Each hook event re-recorded the pane's authority evidence, which bumped the
revision counters behind the "urgent persist" fingerprint even when only
observedAt moved. Every event then skipped the 5s throttle and rewrote
last-status.json. Update the stored evidence without bumping the revision when
the authority itself (launch token, connection, tab, worktree) is unchanged.

* test(agent-hooks): remove timer-racy persistence count assertions
…tching entry (stablyai#39820)

command -v prints a shell function's bare name, so a claude/codex directory
or executable in the cwd passed the -x check and Orca replaced the user's
function. Skip the wrapper when a function with that name is already defined.

STA-13246
…ai#39118)

List the Bitbucket API token scopes Orca needs (read:user, read:repository,
read:pullrequest, write:pullrequest) in the Email & API token form so users
configure a working token up front instead of hitting missing-permission
errors when creating a pull request. Strings are translated in every locale.

Fixes stablyai#38652

Co-authored-by: Neil <[email protected]>
…ablyai#39199)

Command, Environment and Codex's session source home now use Input's
code variant, so they render at text-xs instead of md:text-sm above
768px. The Arguments label matches its siblings' text-xs style, and the
Arguments wrapper uses py-0.75 so its text is vertically centred.

Co-authored-by: Neil <[email protected]>
…e active workspace is deleted (stablyai#39230)

With Hide sleeping on, deleting the active workspace activated the most
recently visited sibling (or main) and seeded it a terminal, so a hidden
sleeping row popped back into the sidebar. The removal successor now
skips siblings the sleeping sweep hides, using the same check the
sidebar's reveal path uses and honoring rows held through the PTY-rebind
grace window. With no eligible sibling the user lands on the start screen.

Fixes stablyai#39231

Co-authored-by: Neil <[email protected]>
…lyai#39575)

A folder workspace with no worktrees now offers Create worktree for each repository, named after the folder workspace. If that branch name is already taken, the host refuses instead of picking another name, and the composer opens so you can choose.
…39602)

The packaged daemon PTY check types a POSIX arithmetic command and waits
for "OK 42". The daemon picked the PTY shell from the builder's $SHELL, so
a fish builder never printed it and Linux afterPack timed out. Pin the
probe daemon's SHELL to /bin/sh so the check exercises the packaged PTY,
not the builder's login shell.

Fixes stablyai#39591

Co-authored-by: Neil <[email protected]>
…9069)

Adds commit actions to the Git Graph: check out a commit or branch, cherry-pick, revert, and create a branch from a commit. Conflicts hand off to Source Control with continue and abort. Works on local, WSL and remote hosts.
…ken.json (stablyai#39398)

agy-acp-server 1.4.1 keeps the personal sign-in at
<GEMINI_HOME>/antigravity-acp/acp_token.json; nothing it writes ends in
oauth-token, so a signed-in Chat read as signed out and new chats could
move to the host's ~/.gemini account.

Fixes stablyai#39395

Co-authored-by: Neil <[email protected]>
…s fixture error (stablyai#39319)

Native popups now hide the app menu bar like origin-bar popups, so the
Windows menu no longer eats into the 200px minimum content height.

The popup compatibility fixture keeps the first reported error across
later status writes, stops serializing the destroyed Event as an error,
and replaces its status file with the Windows retry helper. The native
resize check now compares against the native outer window size.

Fixes stablyai#39299

Co-authored-by: Neil <[email protected]>
@innocarpe
innocarpe force-pushed the fix/mobile-deepseek-account-usage branch from 43f30c8 to cde988d Compare November 8, 2026 12:17
@innocarpe

ghost commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Sync update (cde988da63)

Rebased onto current upstream/main. The DeepSeek balance section still renders on Accounts, using main's one-argument provider sections and the other-providers block.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.