Repository navigation
fix(apps): reported desktop and mobile defects; accountless host, build id, session ranking - #1300
Merged
Merged
Conversation
A streaming run rewrites its activity stamp about once a second, so ranking the sidebar by it swapped rows under the reader's thumb for as long as anything was producing output — the row that had just started climbed above its neighbours, and a conversation replied to moved to the top. Every list in the rail now ranks by the conversation's start time, newest first: this machine's workspaces and chats (`sortThreads`), and the merged list with a paired machine (`compareConversations`). Pinned rows follow the same rule inside their section and keep their place whether or not they stream. The last reply is still drawn as the row's age. A host older than the `createdAt` field has no start to rank by, so its rows fall back to `lastMessageAt`, the key they were ordered by before. The recent view is unchanged: its active stretch was already creation-ordered, its earlier stretch stays ordered by the last reply.
Ten reported defects, each traced to a cause in the code: - Add a device: pressing it again while an invitation is live minted a second platform row, and closing the window discarded only the last one — unclaimed invitations filled the per-desktop cap, so later adds were refused. The supervisor now re-shows the live invitation instead of minting, the window discards every unclaimed invitation it can see (after re-reading the list), a mint whose bridge never started is revoked at once, and the cap refusal reports `pairing_limit_reached` so the UI shows "unpair a device first" rather than LC999. - Unpair on the other computer: `Remote credential is invalid or revoked.` matched no error class, so the row kept offering Connect and the sentence reached the user in English. It is classified now; the row reads "Pairing revoked", drops Connect and gates Settings. - Phone after a desktop unpair: the same English sentence fell through the fallback class, and the disconnected page had no way out. It maps to "pairing expired", and the page offers 解除配对 beside 重新连接. - Scheduled tasks: an interval was unparseable without `anchor` (the form never sends one), so it was stored with no next slot and never fired; and a running task's conversation only reached the sidebar once it settled. The anchor defaults to "now", and the run announces its conversation as soon as the first message is persisted. - Appearance: the native window theme was pinned on every apply, including "follow the system", which then resolved to the last explicit choice. System clears the pin and re-reads the OS preference. - Search: two `×` sat side by side once a query was typed, and the field's flex min-width pushed the row past the rail. One `×` (clear, then close), `min-w-0` on the field. - Vibe fullscreen: leaving the panel could leave the window fullscreen on Windows, with no panel to get out of it. The exit request is unconditional and verified, and re-issued if the window still reports fullscreen. - Fork: the new conversation is a child row and the tree starts folded, so it was selected in the center but hidden in the list. Selecting a conversation opens its ancestors. - Take over: "正在使用" did not say what to do, and Settings on a machine another device drives failed or wrote nowhere. The copy names the takeover, and Settings is disabled with the reason until the machine is taken. - `future remote --help` inside the app's own terminal: the bundled CLI lives beside the app and was never on the child's PATH. That directory now leads the terminal's PATH. - Pairing the same phone twice produced two rows and a takeover that could not work. A client declaration matching an older live pairing retires the older one (in declaration order, so the two cannot evict each other).
… dead pairing Two reports, one theme: the phone showed a state the authoritative side had already ruled out. Unpairing a phone on the desktop, or the platform refusing to renew its credentials, left the phone with a registration it could not use. The screen said '已断开 / 重试' against a pairing that no longer existed, and the retry could never succeed; the registration also survived every revocation. All definitive endings — the host's unpaired notice, a credential the platform refuses to renew, and a revocation the phone confirms by asking the platform — now delete that one desktop's local registration and say so once. A connection that merely failed keeps it, and a terminal failure asks the platform whether the pairing is still there, so a desktop that was asleep stays distinguishable from one that unpaired us. Also adds RemoteControls.desktopReadable (online *and* in control): a standby machine refuses every read, so a page must not ask and then call it a failure.
… its reads While another device drives the desktop it refuses every business command (`superseded`), so the settings pages answered '无法读取桌面端数据,请重试' over a machine that was answering perfectly well, and the merged session list said '还没有对话' over a machine full of conversations. Every settings page that loads something now gates on `desktopReadable`, the device header names the holder and offers the takeover (a successful takeover restores the reads in the same render), and the list shows the takeover page when every answering machine is held rather than an empty state.
…on Edit Three field reports on the same page: - The trigger time was a text field, so it needed the keyboard and could not be reached once the keyboard covered the bottom of the form (Android edge-to-edge does not shrink the window). It is now a picker — all 24 hours, every minute, no keyboard — and the settings stack measures the keyboard itself so a long form still scrolls to its Save button. - A draft lived only in component state, so the phone being killed mid-edit came back to a blank 'new task' page. The draft is now stored per desktop and task, restored on open, dropped once the task's prompt version moved underneath it, and cleared by save, cancel, delete and a step back. - The way into the form said 设置 where the desktop's own button says 编辑.
The phone writes tasks in the desktop's own process, so the store was already current — only the view was stale, and a toggle made from the phone stayed invisible until the user left the page and came back. The remote task writes (create / update / delete / set_enabled / run / apply_revision) now publish a dedicated 'tasks-updated' event on success, and the panel's useTasks re-reads its list on it. It is its own event rather than 'threads-updated': no conversation necessarily changed, and re-listing every conversation to learn that one task's switch moved is the cost this avoids.
…s reads Records the four rules this change introduces: a task edit made over Remote reaches the desktop panel through its own event; a phone whose pairing the desktop ended drops that registration instead of offering a retry that cannot work; a standby phone stops issuing reads the host will refuse and offers the takeover instead; and the mobile task form picks its time, keeps its draft and calls the entry Edit.
…e that reaches the desktop panel
`tauri bundle` finishes by stripping quarantine attributes with `xattr -r`, but Homebrew also installs an `xattr` (a Python wrapper without `-r`) and its bin directory normally precedes /usr/bin on PATH, so packaging died after the .app had already been signed: failed to bundle project: failed to remove extra attributes from app bundle: failed to run xattr: option -r not recognized Give the bundle step a shim directory holding a symlink to /usr/bin/xattr instead of prepending /usr/bin itself, which would also shadow git, python3 and other system tools for Cargo build scripts. Verified with `make package-desktop` on a machine where `which xattr` still resolves to Homebrew: the .app and the DMG are produced and no xattr error appears.
…ch traced to its cause
`future version` describes the file the reader invoked. The failure it cannot answer is a binary replaced on disk while its process keeps serving the old code: `future version` then reports the new commit and sends the reader looking at the build instead of at the process. Measured while diagnosing a pairing failure on a host whose `/proc/<pid>/exe` had been deleted by an upgrade — the only way to learn which code was actually serving was `ps` and `/proc`, which is precisely what the tool should answer itself. `future remote status` now carries a `build` object from the answering Desktop: `gitCommit`, `gitCommitShort`, `gitDirty`, `buildTarget`, `buildProfile` — the compile-time constants of *that* process (`agent/build.rs` injects them into every binary containing the host), not this terminal's and not a file's. The prose adds one line, and the help says how to use it: compare the commit with `git rev-parse --short origin/dev-<you>`; different means the running Desktop is behind the checkout — restart it; the same means the code is current and the problem is elsewhere; `null` means the Desktop predates the field. Compatibility, in both directions: the field is appended and optional, so a terminal written before it ignores it and a newer terminal reads an older Desktop's answer as absent rather than failing to parse. `future version`'s existing output is untouched — scripts parse that format. Nothing about pairing, invitations, renewal or `service_authorization` changes; this is a diagnostic. The identity rule is shared with the Agent's own answer rather than re-implemented (`unknown`/empty becomes absent, never a literal a reader could compare against `git rev-parse`), and a test asserts the two agree key by key — plus one that the reported commit equals the compile-time constant itself, so a re-spelled value cannot pass.
… that answered it
`future host` treated a Future account as a prerequisite: signed out it required an interactive terminal and ran its own device-code login before serving. That conflated two things. The account is what the *remote desktop* runs on, not what the Agent, local runs, tasks or a machine's own model providers need. - Start signed out and say so: the entry serves everything local and keeps the remote desktop closed. No terminal requirement, no login of its own — its login flow (`ensure_login`, `wait_for_login`, the QR printer) is gone. - Adopt a login that appears while it is running: the supervision loop compares the key on disk with the pinned `Account` and, on a new one, prints `Platform account signed in`, refreshes the model catalogue and enables the remote desktop without a restart — the fresh-machine flow "start the host, then `future auth login`" now works in that order. - A changed or removed login still closes remote access (the old account's ingress must not outlive its credential), and a platform `account_authorization` rejection is no longer fatal: the key is pinned out of the adoption check so a refused credential cannot become a per-second retry loop, and the next login is adopted. Tests: unit coverage for the three transitions (`account_action`), subprocess coverage for a signed-out run that keeps serving, and for a login that appears under a running host and really starts the remote desktop (the pairing call is asserted, not just the message). Docs and the manual acceptance matrix follow.
…t and adopts a login live
`scripts/version.mjs --set-bundle` rewrites the tracked desktop/src-tauri/tauri.conf.json (pinned at 0.0.0; the real version is injected through FUTURE_VERSION) and never puts it back. That is fine in CI, which discards the checkout, but locally every `make package-desktop` left the file modified at whatever the bundle version happens to be — 0.0.2 today. Besides the spurious diff, that dirty tree blocks the `git merge` every other session runs in the same checkout, and it makes the next local build report `+local.dirty`. Snapshot the file before the rewrite and restore it on exit in the three packaging scripts: the macOS and Linux bash scripts restore from an EXIT trap (registered before the rewrite, so a failure mid-build is covered too), and the Windows installer script restores byte-exactly in the finally that already wraps the Tauri build.
huichen
enabled auto-merge (squash)
October 22, 2026 08:30
The signed-out support in `feat/host-without-account` was too broad: it made `account_authorization` non-fatal in every case and dropped the startup profile check, so a signed-in machine's remote behaviour — and how a refused credential was reported — changed along with the one state that needed to. - Startup restores the verification a signed-in machine always had: accepted key serves silently, a refused one prints `Platform authorization is no longer valid. Please sign in again.`, a transport failure is still an error and never read as a logout. Only the step after a refusal changed: this entry no longer runs its own device-code login (signing in is `future auth login`), so it keeps serving locally and waits for the new key instead of prompting. - The remote phase decision is now a pure `phase_action`, and the three look-alike states stay apart: `Failed(AccountAuthorization)` without an account is "nothing to serve with yet" (one line, keep running); the same phase with a pinned account is the platform refusing this machine, and still stops the run; `Revoked` and every other `Failed` stop it too. A refused key is remembered so adoption cannot immediately retry a dead credential. - Nothing retries: signed out, the entry never starts the remote supervisor, and `retryable_start_status` covers only network/server — so no periodic attempts. - Help text now says, next to the local-mode paragraph, that everything platform-backed is refused together while nothing local is (including `future remote devices add`), and that switching accounts still needs a restart. Tests pin the matrix (`account_authorization_is_fatal_only_when_an_account_is_serving`, `revocation_and_other_failures_still_stop_the_run`, `ordinary_phases_never_stop_a_run`), and the two subprocess tests that replaced the old refusal ones keep the safety property they guarded — a redirected launch still prints no authorization material, stdout included — while documenting which premise deliberately changed.
`a_login_that_appears_under_a_running_host_is_served_without_a_restart`
failed on Linux CI (run 39748225797, job `Rust Linux test / tui-cli`) at
`headless_cli.rs:581`: "Remote: Reconnecting" was never reported. The
transcript shows why:
Platform account signed in (…): starting the remote desktop for it.
Remote: Enabled (Agent unavailable)
No device is paired yet. …
Remote: Stopped (Agent unavailable)
FutureOS: Remote connection stopped (None).
`signed_in_home` wrote the login first and the pairing a few milliseconds
later, while the running host polls both. The host adopted the login in that
window, `enable` found an empty book and reported `Enabled`; one second later
the pairing was on disk, nothing was running and nothing had failed, so the
status was `Stopped` — which a serving run answers by stopping. A 400 ms delay
between the two writes reproduces this deterministically on macOS; on a loaded
CI runner the same window opened by itself.
A machine that is already paired has its credential long before
`future auth login` runs, so the fixture now writes the pairing first and the
login second. Each file is written to a sibling temp file and renamed over the
destination, the way `write_json_atomic` does, so a reader never parses half a
file. With the pairing first, the same 400 ms delay passes: the ordering, not
the timing, was what the test depended on.
huichen
added a commit
that referenced
this pull request
Oct 22, 2026
… and the task form names zones Four reports from the desktop defect list, each traced to a cause in the code. - Add device, then Cancel: the invitation stayed on the platform. An unclaimed invitation is not in the pairing book — it enters at the handshake — so `unpair_slot` found no credentials and revoked nothing, and the platform row kept one slot of the per-desktop cap until its nonce expired. Five presses of add and cancel filled that cap with codes nobody could claim, and the sixth press was refused over a limit the user had never spent on devices. The discard now queues a revoke by the only identifier an unclaimed invitation has, its pair id, on the same compensation lane an unpair uses; `remove --all` clears them the same way. Delivery is queued rather than awaited, so closing the window never waits on the platform. - The other computer unpaired this one, and its row stayed. The desktop client never read the host's own notice: the presence payload's `unpaired` (and `disconnected` with that reason) went into `apply_presence`, which only looks at `control`. The row therefore survived until somebody pressed Connect and the platform refused it. The list now drops the pairing — and its registration — when the host says so, and when the platform's own answer to a connect is `credential is invalid or revoked`. A machine that is merely asleep is left alone: forgetting it would silently unpair a computer that comes back when it wakes. - Take over: "LNA-AL00 is in control" did not say what to do. The row reads "Another device (LNA-AL00) is in control"; Settings stays disabled with the reason on hover, which #1300 already did. - Settings → Keyboard shortcuts: the two paragraphs naming the levels and the terminal's rule are gone. What is left is the search box, the reset button and the list. - Scheduled tasks, time zone: a picker of four hundred English identifiers named the region and nothing else. Each row is now the zone's name in the UI language plus its offset (`中国时间 · UTC+8`), this machine's zone and the common ones lead, the rest run west to east, and a search box answers a name, an identifier, a city or `+8`. The stored value stays the IANA name, so changing the interface language never rewrites a schedule. Docs record the two rules that changed: a discarded invitation is deleted on the platform, not just forgotten here, and a zone is read in the reader's language while the identifier remains what is saved.
huichen
added a commit
that referenced
this pull request
Oct 22, 2026
…tations, portable build steps (#1308) * test(agent): give the shell timeout test room for PowerShell startup `timeout_retains_partial_output_without_fabricated_exit` starts PowerShell on a one-second deadline, so on a loaded Windows runner the window can close while PowerShell is still starting up and the test reports the timeout property as broken. It failed that way on 2026-10-22 (run 39779594808, `Rust Windows test / agent`) on a commit that passed on macOS and Linux. Nothing in the product changed: the same four assertions, the command still sleeps far past the deadline, and POSIX keeps its one-second window. Only the Windows deadline moves to 8s — eight times the window that lost, which is the only measurement the failure gives (the cold start did not fit in 1s) — and the failure message now reports the tool's own duration, the wall clock and the output actually captured, so a slow shell start and dropped output stop looking identical in the log. A new upper bound fails the test if a call returns well past its deadline, which a never-returning timeout would otherwise turn into a slow pass. * fix(mobile): keep a standby desktop's settings out of reach A machine another device drives refuses every command before a handler runs, so the device page's five rows opened a stack of dead ends: greyed-out switches under a "could not read the desktop" line, and approval radios that only asked whether the machine was online — a tap wrote a command the host answers with `superseded`. Those rows are no longer drawn while `presence.control === "standby"`: the banner above them (holder, reason, takeover) is what the page keeps, and the machine's name and icon stay editable because they are this phone's own record of it. A level already open when control is taken gives way to that banner and returns in the same render once this phone has the machine again, and the approval write is refused in its handler rather than only at the route. * fix(mobile): align the scheduled-task form with the desktop's The phone's editor was an approximation of the desktop's, and the differences were load-bearing: - A new task started on "manual", which is the one trigger that never fires (`TriggerKind::Manual` has no next due time) — and the phone has no run-now button either, so the task it built by default could not run at all. New tasks now pick a trigger and are refused without one; a task that is already manual keeps its option, so an edit round-trips. - "Weekly" was a text field asking the user to spell `mon, fri`; it is the same seven toggles the desktop draws, stored in week order. - A one-off's date was a text field whose `2026-12-24` placeholder read as a date already chosen — the trap the desktop removed with a picker. `DateField` is the same choice in three chip rows, with days that follow the month. - The time zone sat outside the trigger and offered four hard-coded names. It belongs to the schedule, so it now sits inside the trigger and only for a mode that reads a clock, listing every zone the runtime knows, with a search field; a zone the task already carries is kept even if the list lacks it. - The list row rendered `nextDueAt` on the *phone's* clock while the desktop rendered it on the task's, so the two clients named different wall clocks for the same run. `list_tasks` now carries the row's `timezone`, and the row is formatted on it. Backing out of the form also kept discarding the draft: the system gesture and the header arrow are how a phone leaves a screen, and an interrupted form is exactly why the draft exists. Only Cancel and a save that landed clear it now. * docs: drop the Westlake HPC guide and close the bilingual debt it carried `docs/hpc-westlake-guide.zh-CN.md` (#1296) was the repository's only entry in `BILINGUAL_PENDING`: a Chinese-only guide for one institution's cluster, which nothing else in the docs refers to. Rather than write an English pair for it, the page goes and the pending entry with it, so `make check-docs` stops being a standing red that every unrelated change has to explain — `--strict-pending` now passes with no debt left. The gate's third step also failed on Windows, for a reason unrelated to docs: `check-channel-matrix.py` read the matrix, the registry and each provider with `read_text()` and no encoding, so a machine whose locale is a legacy code page could not decode the UTF-8 sources at all (`UnicodeDecodeError: 'gbk' codec …`). All three reads now state `utf-8`, the same way `check-docs.py` already does. `BILINGUAL_PENDING` stays a dict literal rather than becoming `set()`: `scripts/tests/test-check-docs.py` inserts its debt fixture after the opening brace, and 35 docs-gate regression tests pass unchanged. * fix(build): set the docs-test bytecode flag without a POSIX-only prefix `make test-docs-check` could not run on Windows at all: PYTHONDONTWRITEBYTECODE=1 python3 scripts/tests/test-check-docs.py 'PYTHONDONTWRITEBYTECODE' is not recognized as an internal or external command That `VAR=1 command` prefix is POSIX shell syntax, and a Windows make runs recipes through cmd.exe, which takes the first word of the line as the program to run. The flag is now a target-specific exported variable, which make places in the recipe's environment whatever the shell is — and, unlike a bare `python3 -B`, the interpreter's own child processes inherit it, which is what this test needs for the trees it builds and runs. `test-screenshot-harness` sets the same two flags the same way; it had the same error, three lines below. The Makefile stays compatible with the GNU Make 3.81 on this machine, where target-specific `export` is supported (verified, along with it being scoped to its own target and inherited by a grandchild process). * fix(apps): a cancelled invitation is revoked, a detached peer leaves, and the task form names zones Four reports from the desktop defect list, each traced to a cause in the code. - Add device, then Cancel: the invitation stayed on the platform. An unclaimed invitation is not in the pairing book — it enters at the handshake — so `unpair_slot` found no credentials and revoked nothing, and the platform row kept one slot of the per-desktop cap until its nonce expired. Five presses of add and cancel filled that cap with codes nobody could claim, and the sixth press was refused over a limit the user had never spent on devices. The discard now queues a revoke by the only identifier an unclaimed invitation has, its pair id, on the same compensation lane an unpair uses; `remove --all` clears them the same way. Delivery is queued rather than awaited, so closing the window never waits on the platform. - The other computer unpaired this one, and its row stayed. The desktop client never read the host's own notice: the presence payload's `unpaired` (and `disconnected` with that reason) went into `apply_presence`, which only looks at `control`. The row therefore survived until somebody pressed Connect and the platform refused it. The list now drops the pairing — and its registration — when the host says so, and when the platform's own answer to a connect is `credential is invalid or revoked`. A machine that is merely asleep is left alone: forgetting it would silently unpair a computer that comes back when it wakes. - Take over: "LNA-AL00 is in control" did not say what to do. The row reads "Another device (LNA-AL00) is in control"; Settings stays disabled with the reason on hover, which #1300 already did. - Settings → Keyboard shortcuts: the two paragraphs naming the levels and the terminal's rule are gone. What is left is the search box, the reset button and the list. - Scheduled tasks, time zone: a picker of four hundred English identifiers named the region and nothing else. Each row is now the zone's name in the UI language plus its offset (`中国时间 · UTC+8`), this machine's zone and the common ones lead, the rest run west to east, and a search box answers a name, an identifier, a city or `+8`. The stored value stays the IANA name, so changing the interface language never rewrites a schedule. Docs record the two rules that changed: a discarded invitation is deleted on the platform, not just forgotten here, and a zone is read in the reader's language while the identifier remains what is saved. * fix(build): pass the proto regeneration flag without a POSIX-only prefix `make generate-proto` could not regenerate anything on Windows: the recipe wrote `REGENERATE_PROTO=1 cargo build`, a POSIX shell prefix that cmd.exe reads as the program name, so the build script never saw the variable and the targets failed with `'REGENERATE_PROTO' is not recognized as an internal or external command`. It is now a target-specific exported variable, which make puts in the recipe's environment whatever the shell is. Verified on Windows: the build script now receives it (it gets past its "not requested" early return and looks for protoc, which it never did before), and a full run with a temporary protoc on PATH regenerated both wire files byte-identically — `git status` shows no change under packages/rpc/src/generated or channels/src/generated. * fix(screenshots): make the orphan sweep work on Windows The screenshot harness reaps browsers and `future-shot-` profiles that killed runs left behind, and on Windows it could not: `list_processes()` shells out to `ps -Ao`, which does not exist there, so it returned an empty list and the sweep was a silent no-op — every interrupted run kept its browser and its 130-160 MB profile, exactly the defect the sweep was written for. The listing now comes from `Get-CimInstance Win32_Process` on Windows (as JSON, asked for as UTF-8 so a non-ASCII temp path is not mangled), because the two fields it needs — the parent id and the command line — are in neither `ps` nor `tasklist`. Orphan detection had the same POSIX assumption: it required `ppid == 1`, which is what re-parenting to init looks like. Windows does not re-parent, so an orphan there still names its dead launch. `parent_is_gone` therefore accepts either form — re-parented to init, or a parent that is no longer in the listing — and still cannot select a browser whose capture is running. `os.kill(pid, signal.SIGTERM)` is the same call on both platforms; on Windows it is `TerminateProcess`, which is the outcome the sweep wants for a browser whose run is already gone. The SIGTERM *handler*, on the other hand, can never run on Windows (`os.kill` terminates the process outright), so it is now POSIX-only and says so — there the startup sweep is the guarantee, and `ReapTests` exercises it on both platforms. The tests lost two POSIX assumptions of their own: `process_absent` probed liveness with `os.kill(pid, 0)`, which on Windows neither raises for a dead pid nor sends anything (it could only ever time out), so existence now comes from `OpenProcess`; and the signalled-exit case is skipped on Windows with the reason above rather than silently failing. 17 tests pass here, 1 skipped. * test(remote): decide a phone unpair's epoch before its cleanup, not by racing it `an_unpair_whose_epoch_was_revoked_leaves_the_pairing_alone` failed about one run in five. It asserted that a phone-initiated unpair leaves the pairing alone after its epoch was revoked, and set the revoked state *after* the command returned — on the premise that the test's current-thread runtime had not scheduled the spawned cleanup yet. That premise is false. The supervisor's executor is `DesktopExecutor`, which spawns on the process-wide runtime, so the cleanup runs on another thread concurrently with the test. Whichever side the scheduler picked decided the outcome: with a live epoch the cleanup legitimately cleared the pairing, and the assertion fired against behaviour that was correct. The two halves now have their own tests, because they need opposite timing. The acknowledgement is asserted through the command, which is what proves that path reaches the cleanup at all; the guard is asserted by calling the same cleanup under an epoch revoked *before* it starts, where the answer is decided rather than raced. Both layers of the guard are described where they live: the inner one (`CommandRuntime::unpair_slot` refuses a dead generation) is the guarantee, the outer early return only keeps `remote_server_stopped` out of the log. Verified by removal: with both guards gone the new test fails every run, so it pins the invariant rather than the absence of a race. 20 consecutive runs of the pair pass, and no run has failed since. * test(shots): capture the three surfaces this change touches The screenshots are the evidence, so the fixtures that produce them belong in the repo: without the scenario rows and the mock state they cannot be re-run. - `remote-peers-held`: a paired computer another device drives. The mock peers gain the `control`/`holder` fields the real peer summary carries — absent is still "no statement" (an older host), which is what every earlier scenario reads — and `?peers=held` marks the first one as held. - `settings-shortcuts`: the shortcut page without the two paragraphs, asserted by their own text so a future edit that puts them back fails the capture. - `tasks-timezone-picker` / `tasks-timezone-search`: the zone list in Chinese with offsets beside each name, and the same list narrowed by `+8`. The time-zone trigger also gains an accessible name: its content is the chosen zone ("中国时间 · UTC+8"), which does not say what the control is for, and a button a scenario cannot address by name is a button whose accessible name is missing. * fix(desktop,ci): stop a forked child from reading as an active update; retry a stalled apt mirror Two independent causes of the red required checks on #1308. `Operation::begin` reported `Another update transaction is active` in CI for a case that had started no update (run 39802801818, `Rust Linux test / desktop`). The lease is a file lock, and this process spawns children constantly — the CLI runner, the installer, terminal shells — so a child forked by another thread inherits every descriptor that is open at that instant, this lease among them, and keeps the lock until it execs. The refusal is now reported only after a short settle window (250 ms in 10 ms steps); a genuinely concurrent installation holds the lease for minutes, so the outcome for it is unchanged, while a fork-to-exec gap is microseconds. `install-apt-packages.sh` rewrote the mirror only when `apt-get update` failed. A *stalled* download therefore had no fallback at all: `Acquire::http::Timeout` bounds the socket rather than the transfer and `Acquire::Retries` retries an error rather than a connection that opens and then crawls, so a run sat on ~2.5 MB from the Azure mirror until the 180 s budget expired and the job died with 124 — three jobs at once in that run. A failed or timed-out installation now switches to Ubuntu's public archive and tries once more, as the update step already did.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This branch lands the batch of desktop and mobile defects from the issue summary, plus features that merged into the integration branch in the same window: a host that serves without an account and adopts a login live, a remote status snapshot that names the build which answered it, session lists ranked by creation time, and two follow-up fixes for the host's remote outcomes and for the headless login fixture.
Commits
Verification
Local checks at the branch tip (macOS arm64, rust 1.97.0):
cargo fmt --all -- --check— cleancargo clippy -p future-host -p future-tasks -p future-remote-server -p future-cli --all-targets -- -D warnings— cleancargo test -p future-host --lib— 1774 passed, 1 failed:remote_host::pairing::http_tests::response_error_defaults_and_filterspanicked onDatabaseBusy "database is locked". The file it lives in is untouched by this branch and the test passes when run alone, so this is parallel-test contention on the shared database, not a code defect.cargo test -p future-tasks --lib— 59 passedcargo test -p future-remote-server --lib— 172 passed, 5 ignoredcargo test -p future-cli --lib headless— 19 passed;cargo test -p future-host --lib build_info— 6 passedcargo test -p future-cli --test headless_cli— 13 passed (the login-adoption arm three times in a row)npm run lint(eslint +tsc --noEmit) clean;npx vitest run— 373 files / 5150 tests passednpx jest --runInBand— 146 suites / 2822 tests passedNot run locally: clippy and tests for the
futureosGUI crate (desktop/src-tauri); CI covers it.Notes
future hostnow starts and serves without an account and adopts a login while running; seedocs/guide/desktop-host.md.a_login_that_appears_under_a_running_host_is_served_without_a_restartfailed on Linux CI (run 39748225797): its fixture wrote the login before the pairing the login is meant to serve. The running host adopted the account in the gap, reportedEnabledfor an empty book, and one second later answeredStopped— which a serving run treats as terminal. The fixture now writes the pairing first, each file byrename, which is the order a real machine has (it was paired long beforefuture auth loginran).