Repository navigation
feat(cli,desktop,mobile): provider + thinking-level settings; fix an empty-run row - #1599
Merged
Merged
Conversation
Reported from a phone (2026-11-13): a "Completed" line sat between the prompt and the reply being written below it, as if that reply had already finished. It was a reply bubble with nothing in it. The live lane materializes a bubble from the run's projector on every event, so an accumulator exists for any run an envelope named — including a run that never wrote a word of its own before it settled. While the run is live that empty bubble is the footer's generating indicator, which is worth drawing. Settled, it has no prose, no rows, no clock, no token count and no verdict, so its footer falls back to its own label and the card is one line reading "Completed". `buildLiveAssistantItem` now reports a blank settled reply instead of a card, and `upsertLiveAssistantItem` removes that run's bubble rather than drawing it. An unfinished reply keeps its bubble: emptiness while a run is live is the indicator, not a defect. A verdict is content even without words, so a failed, stopped or truncated run still draws its bubble. Tests (remote-client/timeline): a session-scoped frame folded into a run bucket of its own and a run whose only frame is its terminal both leave no card; an unfinished reply keeps its; and the reported transcript — prompt, blank card, streaming reply — now reads as prompt then reply.
…l probe The thinking-level probe existed only in the desktop's own provider dialog, and a provider's model settings could only be written from a GUI. This makes the probe work for a remote host's clients too, and gives the CLI the whole model settings surface. CLI (`future models`): - `providers [--json]` reads every provider and model setting through the Agent (`list_providers`); keys never appear, only `hasApiKey`. - `provider set|remove` writes a provider: a built-in accepts only `--key/--clear-key` and `--base-url/--clear-base-url` (its models come from the catalog), a custom one also takes `--name`/`--api` and is created with create-only semantics when it does not exist yet. The account provider `future` is refused (it is signed in). - `model set|remove` edits one model of a custom provider: name, context window, max output, image input, thinking levels and per-1M prices. Settings the caller does not name keep their value (including a thinking-level list inherited from the provider level), and a missing model is added with the editors' defaults. - `probe <provider>/<model>` asks the Agent which thinking levels the endpoint accepts, one level per call. The calibration level (`default`, no thinking parameter) comes first and stops the run when it fails, so a wrong base URL, key or model id cannot read as "no level is offered". Agent: `probe_thinking_level` fills `api`/`base_url` from the registered model when the caller leaves them out, which is what lets `provider/model` be probed without restating how it is addressed. An unsaved provider still has to carry them. Remote: `probe_thinking_level` joins the shared provider commands, so a phone or another desktop probes on the host that owns the provider (the request is built by the host's Agent, from the request that host will send). The desktop client reaches it through a dedicated Tauri command with a probe-sized deadline, since the ordinary 10 s command budget would report a slow provider as a transport failure; the phone uses the settings lane's 60 s. Clients: the phone's provider editor gains the same "detect" control, and the desktop's remote-peer provider panel now supplies the probe its dialog already had. The `skills` pointer moves to future-self 1.13.0, which documents this surface.
huichen
enabled auto-merge (squash)
November 13, 2026 11:33
auto-merge was automatically disabled
November 13, 2026 11:57
Pull Request is not mergeable
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.
Adds a model-settings surface to the CLI, lets any client (a phone, a second desktop) probe a provider's thinking levels on the host that owns it, and stops a settled run that never wrote anything from leaving a one-line "Completed" card in a thread.
Commits
future models providers|provider set|remove|model set|removeread and write every provider and model setting through the Agent (keys are never printed, onlyhasApiKey);future models probe <provider>/<model>asks the endpoint which thinking levels it accepts, calibration level first so a wrong base URL, key or model id fails instead of reading as "no level offered".probe_thinking_leveljoins the shared remote provider commands so the phone and a second desktop probe on the host that owns the provider, reached from the desktop through a Tauri command with a probe-sized deadline; the mobile provider editor gains the same detect control. Theskillspointer moves to future-self 1.13.0.Verification
Local self-test on a detached worktree at 5244a61 with the pinned Rust 1.99.1 toolchain and
ulimit -n 8192:cargo fmt --all -- --check→ cleancargo clippy --all-targets -- -D warnings→ future-cli, future-agent, future-host, future-remote-protocol, futureos: cleancargo test -p future-cli --lib→ 1617 passedcargo test -p future-remote-protocol→ 31 passedcargo test -p future-agent --lib→ 3065 passed, 5 failed inagent/src/sandbox(no file this branch touches): the same 5 fail on origin/main 3903edc in the same full-parallel run and pass when run alone, so they are pre-existing and environmentaltsc --noEmitclean,eslintclean on the touched files,vitest83 files / 1342 tests passtsc --noEmitclean,jestProvidersSettings 27 passedcheck:generatedin sync,tscclean, 63 tests passtscclean, 706 tests passNotes
probe_thinking_levelis a new host-side command: an older host answersunsupportedfor it.check:generatedis clean).User-visible changes
future models providers | provider set | remove | model set | remove | probe. Before: model settings could only be written from a GUI. Revert: 3d93121.