Commit Graph
155 Commits
Author SHA1 Message Date
bflatastic 8f12dd262a Take a pasted JSON array as a plugin's arguments (R2.9) 2026-11-19 06:09:04 +07:00
Mansur Akhmadi 4d6e834d11 Keep the steps test to paths only one-pass filling keeps; note the fill in platform's docs 2026-11-19 04:39:02 +07:00
Mansur Akhmadi 58a5989fdf Fill the engine build steps' placeholders in one pass (R2.9) 2026-11-19 04:31:11 +07:00
Efe Şahinbaş 479c287661 Localize saved-builder replacement notices after Just ask (R5.5) 2026-11-18 23:37:39 +03:00
Mansur Akhmadi 02ef4dffc2 Keep inserted values literal when filling UI placeholders (R2.9) 2026-11-19 02:40:56 +07:00
macallantheroot b277e09438 Localize saved-builder replacement notices in the desktop UI (R5.5) 2026-11-18 21:21:12 +03:00
AlexJoaquimPereira 64a388d06c Reject non-text game folders and settle only the failed job (R3.9)
Review follow-up: folder_picked now refuses a folder whose name isn't text before dispatching either tool, with a message, and sends the exact UTF-8 path. Game files keeps one map of in-flight jobs with their kind and whether the screen still waits for them, instead of a looks list and a listing id. A worker failure is always logged; a current folder scan or listing clears only its own spinner and says so, a failed triage holds neither, and a superseded job says nothing. Export save errors say so without stopping the archive listing, even when the archive path matches a reopened listing.

The same-folder regression now starts both looks through folder_picked and feeds results through CraftApp dispatch; new regressions cover the non-text refusal, a failed triage keeping the scan running, a superseded failure staying quiet, and an export error not clearing loading.
2026-11-18 21:26:03 +05:30
AlexJoaquimPereira 54f42f8230 Keep a Game files look with the job that asked for it (R3.9)
Picking game A, B and A again while the first A look ran could still apply the older A result, because the screen compared the shown folder's path. Worse, a folder whose name has bytes that aren't text was sent as a lossy display string, so every completion failed the same path check and the screen loaded forever. act now returns its job id; GameFiles records the folder looks and the archive listing still expected, and tool_done applies only those. A repeated pick ignores the older answer, and a non-text folder's current answer finishes with its error.

Regressions: a stale same-folder look is ignored and the newer one fills the list; a non-text folder's current error clears looking and is shown. The three existing wrong-folder/archive guards still pass.
2026-11-18 21:26:03 +05:30
Justin John 5e09595d55 Let Settings → AI choose Codex's model (#2129)
Codex now shows the model it uses ("Codex default" until one is chosen) with Change…, like Claude Code (#2109). The choices are its default (no model is passed, so its own settings decide) and the models `codex debug models` lists, in its order, leaving out the ones it hides; over SSH the remote Codex is asked. `ai model Codex` lists and sets them the same way. Until now the model could only be set by adding `cli_model` to config.toml by hand.
2026-11-18 21:35:57 +07:00
JG Tromp e76683e8f9 Show the app's version in Settings → About on every system (R2.9) (#1301)
Settings ends with an About tab that shows "Craft Anything" and its version on every system, not
only in macOS's menu bar. A Copy the version button, which the keyboard reaches, copies it. "About"
and "Copy the version" are in all 16 catalogs. The roadmap ticks the item and adds an open line:
Settings doesn't fit a small window at high zoom.

Closes #1300.
2026-11-18 18:20:44 +07:00
JG Tromp 788642e487 Offer Simple / Advanced on the Make screen, and always show Clean room / Deep there (R2.9) (#1286)
* Claim Simple / Advanced and Clean room / Deep on the Make screen (R2.9)

* Offer Simple / Advanced on the Make screen, and always show Clean room / Deep there (R2.9)

Simple mode's title bar leaves the mode switch out, so someone starting on
New project never saw that Advanced exists. The ways in now end with a
Simple / Advanced switch (on a line of its own when the window is too
narrow), using set_mode like Settings and the title bar; switching from
there stays on New project instead of opening the workbench, so the draft
stays in view.

The Clean room / Deep tiles appeared only once an original was picked. They
are now always in view: with nothing to recreate they are dimmed, can't be
picked, and say the choice applies once there is something to recreate.
Choice tiles report whether they are enabled to accessibility.

* Put back this PR's roadmap line, dropped by a merge of main, worded as review asked (R2.9)

A merge of main made in GitHub's conflict editor dropped the R2.9 line this
PR ticks. It's back, now saying Simple's title bar had no mode switch (only
Settings had one) rather than that Simple hid it everywhere but Settings.

* Describe #1286's two new tests in doc comments (R2.9)

* Measure the room Make's Simple / Advanced switch needs instead of assuming 240 points (R2.9)

Review of #1286: the row beside the ways in fitted the switch by a fixed 240-point width, set
for English. It's now measured from the switch and its name in the language shown
(widgets::segmented_width, from main's design system), so a longer translation moves the switch
under the ways in sooner. The narrow-window test also sweeps five window widths and checks the
switch and its name never overlap the ways in and stay inside the window.
2026-11-18 16:08:41 +07:00
Fury 7fb205e7fb Say a refused settings save in the UI's language, with what to do (R2.9) (#2071)
When config.toml couldn't be loaded, the app refuses to save over it, and the toast for that was the engine's English message alone, without its remediation. It now leads with "Couldn't save your settings." in the UI's language, then the engine's message and what to do about it. The line is in every catalog.
2026-11-18 09:14:07 +07:00
JG Tromp 5faaa95ca1 Add a System theme that follows the system's light or dark appearance (R2.9) (#1234)
* Claim sliding switches and a System theme (R2.9)

* Slide two-way switches to the new choice, and add a System theme that follows the system (R2.9)

widgets::segmented now draws its raised card once, at a place and width
animated toward the selected segment, so Simple/Advanced, Studio/Studio
Light, Clean room/Deep and the other switches slide instead of jumping.

Theme gets a System choice, the new default for new settings: the app reads
the system's light or dark appearance each frame (ctx.system_theme()) and
draws Studio Light or Studio to match, dark when the system doesn't say.
A saved Studio or Studio Light stays as it is.

* Put back this PR's roadmap line, dropped by a merge of main (R2.9)

A merge of main made in GitHub's conflict editor dropped the R2.9 line this
PR ticks; it's back unchanged at the end of R2.9.

* Test that the System theme follows the system's appearance frame by frame (R2.9)

Review of #1234: only the resolver was tested. The smoke test now changes RawInput.system_theme
Light, Dark, Light with System chosen and runs frames through CraftApp, checking the resolved
theme and what was applied (visuals.dark_mode) each time; with Studio and Studio Light chosen
the same changes leave the chosen theme in place.
2026-11-18 08:44:39 +07:00
JG Tromp de4ff76c29 Ask which model to use when a server added by address lists several (R5.4) (#1436)
* Claim asking which model to use when a server lists several (R5.4)

* Ask which model to use when a server added by address lists several (R5.4)

* Leave the Look for AI line to its own PR (R5.4)

* Offer a server's models only for the address that was asked (R5.4)

Review of #1436: the add's answer was stored with the address the form showed when it arrived,
so changing the address while one server answered offered its models for another, and picking
one asked that other server for it. BackendAdded now carries the address that was asked; only
the form's current request (server_form.connecting) sets or clears the list, which is kept only
while the form still shows that name and address. Any other failure clears an earlier list; a
Stop keeps it. The test changes the address before the answer arrives, answers a replaced
request, and fails a request after a list was offered.

* Draw the server's model choice with the app's own dropdown (R5.4)

Review of #1436: the list of a server's chat models was a raw egui ComboBox with
selectable_label rows. It now uses widgets::dropdown and widgets::menu_item, like the app's other
pickers, so it keeps their icon, popup style and row look.

* Drop a model picked from one server's list when the address changes (R5.4)

Review of #1436: a model picked from server A's list stayed in the model field after the
address was changed to B, so Add would ask B for A's model, which may start a download. The
form now remembers which address a listed model was picked for (ServerForm::picked) and clears
it once the address is another; a model typed by hand is left alone. The model dropdown is
named "Choose a model" for screen readers. A smoke test picks a model by clicking the dropdown,
types in the address field and checks the model goes, then checks a typed model stays.
2026-11-18 08:44:16 +07:00
AlexJoaquimPereira 746ee700bf Keep a game-files look with the folder or archive it was for (R3.9)
A look at one game's folder or archive could land after the person picked another one, so the old profile, archive list or file rows were shown under the new pick, and a save could name an item from the old game. The button job now carries its request, and game_files::tool_done ignores an Ok or Err result whose path no longer matches the shown folder (game_archives_list/core_target_triage) or archive (game_pak_list/game_unity_list/game_iostore_list/game_unity_bundle_list). Export toasts still say a file was saved.

Regressions: an old game folder's archive list/profile and an old archive's rows are ignored and leave the new look running; an old folder's error isn't shown, while the shown folder's error is. All three failed before the guard.
2026-11-17 22:35:51 +05:30
GeraldBro 82dec59ab2 Complete the French UI catalog (27 strings) 2026-11-17 16:18:40 +01:00
AlexJoaquimPereira 80926a20e4 Keep a pin size estimate in its own project's dialog (R2.10)
A pin estimate that finished after the person cancelled or opened another project's dialog wrote its size into the open draft; an estimate error could also fall through to a toast. The estimate result and every project_pin_create error now name the project (estimate errors also say estimate), and the dialog fills only when the Pin dialog is open for the same normalized project. Estimate errors the open dialog rejects are swallowed; a failed pin creation still tells the person.

Regressions: a late estimate and a late estimate error for another project, an estimate after the dialog closed, and a failed creation that still toasts. Engine tests check the estimate result and both error details, including an open-project failure.
2026-11-16 23:56:16 +05:30
Fadlalla-ai 607d66bba1 Keep the Ghidra lookup test from finding a Ghidra installed on the computer 2026-11-16 18:52:34 +04:00
Fadlalla-ai 5494902239 Look Ghidra up once for Settings → Engines, not on every frame 2026-11-16 18:31:50 +04:00
Justin John 997b89ce4c Keep Settings → AI's tool list from showing an older choice (R5.4) (#1950)
Each change to an AI's tool list runs as its own job, and jobs can finish in any order, so two quick changes could leave Settings showing the first while the second was saved. The row now waits for its save, as the request-rate row does. Also escapes the `|` characters that split the STATUS table row.
2026-11-16 20:52:04 +07:00
Justin John a897fff072 Choose each AI's builder tool list in Settings → AI and with ai tools (R5.4) (#1946)
An API backend's `tools` setting (auto, lean or full) could only be changed by editing config.toml. Settings → AI now has a "Builder's tools" choice per API backend, with a caption saying what Auto works out to for that AI, and `ai tools <name> [auto|lean|full]` shows or sets it from the CLI. Auto is saved as no setting; agent apps are refused, as they choose their own tools.
2026-11-16 19:41:14 +07:00
Trần Quang Đãng 9460af211f Let Claude Code use the model its own settings name by default (#921)
* Let Claude Code use the model its own settings name by default

Claude Code runs are no longer passed a hardcoded --model: with no choice
saved, the agent uses whatever its own settings name (a custom model, an
alias, opusplan…), and `ai model --default` clears a saved override back
to that. The Settings → AI picker lists "Default (its own settings)" first
for Claude Code (saved as `claude-code` or `claude`), choosing it clears
the saved model, and the typed "Another model" field is gone since the
list carries the choice. effort_levels detects Claude Code by adapter id
so the `claude` agent id gets every effort level too.

* Translate "Default (its own settings)" in the remaining eight catalogs

The i18n gate requires every catalog to carry the same key set; the
first commit only added the new picker label to six of them.
2026-11-16 08:59:20 +01:00
Herwin bd405ceeb5 Study websites behind a login: save a sign-in you make in a browser window and reuse it (R2.9) (#1459)
Addresses #1178 (which also consolidates #1277).

## The problem

The website study a build starts with opens a fresh private browser, so a web app behind a login is studied as its sign-in or landing page, and the builder then builds a sign-in page.

## What this adds

- **`web_site_sign_in { url }`** opens a visible browser window on the site. The person signs in there themselves and closes the window. The browser's profile is then saved in Craft Anything's own folder, keyed by the site's host and port. Craft Anything never sees or stores a password and still never reads cookie or storage values.
- **`web_site_open`** uses a saved sign-in for that exact host and port when there is one, by copying it into the usual temporary profile (headless as before, deleted afterwards). `signed_in: false` forces the private profile; `signed_in: true` with nothing saved is a clear error naming the sign-in tool. Nothing else about the private path changes.
- **`web_site_sign_out { url }`** forgets a saved sign-in.
- **A check right after saving.** The sign-in tool reopens the site headless exactly as a later study will, and reports whether it still looks like a sign-in page, plus a screenshot kept in the site's owner-only folder (path, hash and size are returned, not the picture, so the person's account screen is not sent to an agent).
- **Typed facts through to the builder.** `signed_in`, `signed_in_site` and `sign_in_page` are in the open result, the capture result and `capture.json`. The website briefs tell the builder the capture is the signed-in view only when it is signed in and does not look like a sign-in page. A not-signed-in capture with a password field says how to sign in; a signed-in one says the sign-in may have ended.
- The check phase opens the built site with `signed_in: false`.

Because a study already starts with `web_site_open`, a normal build of that site is signed in after one `web_site_sign_in`, with no new build option.

## Decisions for maintainers

These are policy calls I made so the change is usable; each is small to reverse.

1. **Clean room allows the two tools** (two lines in `clean_room.rs`). Reasoning: the person signing in as themselves and looking at pages is watching from outside, as a user would; `visitor_view()` strips exactly what it did before.
2. **A saved sign-in is used by default** for later opens of that site, until `web_site_sign_out`. Saving it is treated as the consent, and the tool text and evidence say so. The alternative is opt-in per study, which needs an option in the Make screen and `rebuild`.
3. **Restricted MCP mode refuses both tools even with `--allow-web`**, since sign-in opens a window on the person's desktop.
4. The saved profile sits on disk (owner-only on Unix; on Windows it relies on the per-user config folder). On Linux it is launched with the basic password store so the visible and headless launches can read the same cookies. The tool text says that anyone who can open the person's files could use the sign-in.

## Trade-offs and limits

- Needs a desktop: on a computer with no display the tool refuses at once with what to do instead.
- Sites that tie a sign-in to the browser, or expire it quickly, will capture signed out; the check after saving and the `sign_in_page` field say so.
- Session-only cookies are kept by setting the profile to continue where it left off; restored tabs are not copied.
- The saved profile can also hold single sign-on providers' sign-ins made in that window. It is used only when that exact host and port is opened.
- Screenshots and page text of a signed-in study contain the person's own account data; the evidence says so. Result URLs drop the query and fragment when a sign-in is used.
- Not in this PR (roadmap lines added under R2.9): a Make-screen button, showing the person the study's first screenshots to confirm before the builder starts, attaching to the person's running browser, refreshing a saved sign-in from a capture, and a live run on a real site and with the Snap browser.

## What was verified

Run locally on Linux (x86-64), on the branch before its final rebase onto `main` (the rebase was clean; after it: `cargo fmt --all --check`, `cargo xtask layers`, `locks`, `secrets`, `tools --check`, `i18n-coverage` pass):

- `cargo test -p craft-anything-engine` (583 passed, 12 ignored), `-p craft-anything-mcp` (22), `-p craft-anything-ai` (580, 3 ignored).
- `cargo clippy -p <crate> --all-targets -- -D warnings` for engine, mcp and ai.
- **Live, with Chromium 157 under a virtual display against a local test site** (the new `#[ignore]` tests in `site_sign_in/tests.rs`; a helper plays the person over the browser's own debugging port and closes the window):
  - a sign-in made in the visible window is seen by a later headless open and capture, including an HttpOnly cookie and a session-only cookie (removing the continue-where-you-left-off setting makes that assertion fail, so the setting is what keeps it);
  - `signed_in: false` and a signed-out site show the signed-out page with the private-profile limitation;
  - a site that forgets the cookie is reported as still a sign-in page by the check after saving;
  - two overlapping signed-in opens both work and leave the saved sign-in byte-identical;
  - the timeout path stops the browser, keeps what was saved and leaves no process behind;
  - with no display the tool refuses immediately.
  - The two existing live website tests still pass.

**Not verified:** a real third-party site; a confined Snap or Flatpak browser (reasoned from the existing profile-location code, not run); Windows and macOS behaviour, including the browser-exit signal (the profile lock going away) and cookie decryption there; the workspace-wide `cargo xtask ci` steps and `--features wasm-plugins` (not enough disk locally, so CI is the first run of those); how the egui app shows the new tools.

An independent review pass was done before opening; its findings (copying only after the browser has exited, not treating one slow probe as a closed window, a whole-or-nothing replacement of the saved profile, reserved Windows names in site keys, owner-only permissions) are fixed in the later commits.
2026-11-15 17:28:04 +01:00
Rudy Mizrahi Celekli b9a0f81d14 Let people set an AI backend's request rate in Settings (#1841)
An API backend's requests per minute could only be set by editing config.toml. Settings → AI now has a field for it on each API backend, and the CLI has ai request-rate <name> [n]; zero removes the limit. Agent apps send their own requests, so they have no such setting. The save runs on a worker through the hub's usual save path.
2026-11-15 11:06:55 +07:00
BFlat d30b610ea5 One design system for the desktop app: a shared scale and one set of controls on every screen (R2.9) (#1862) 2026-11-14 22:37:49 +07:00
muraa-p d3bb9ad455 Say when a light pin had to copy what it meant to share (R2.10) (#220)
A light pin hard-links dependencies and media from the project and copies a file it can't link (a drive without hard links, a file at its link limit). That fallback was silent, so the pin just looked bigger. Pins now record `copied_shared_bytes`, and the app says how much was copied instead of shared. Older pins read it as zero.
2026-11-14 17:06:12 +07:00
Rudy Mizrahi Celekli a3db764949 Show ACP token counts as unknown when the agent does not report them (R2.2) (#1843)
Agents over ACP report context use, not a turn's tokens, so their turns now say the token count is unknown instead of 0, in the CLI, the build's activity and the app. Project and session totals keep what was reported: "Unknown" when nothing was, and a lower bound such as "1.9M+" when some turns had no count. usage.json gains `tokens_incomplete`; older files read as before.
2026-11-14 14:36:22 +07:00
Justin John 2f99163b1b Let OpenAI-style AIs be set to think harder, sent only once chosen (R2.9) (#1818)
The Effort setting in Settings → AI appeared only for the Claude API and Claude Code. OpenAI, OpenRouter, Gemini and OpenAI-compatible AIs now offer OpenAI's levels (none to xhigh), starting at default, which sends nothing; once a level is picked, requests carry reasoning_effort (OpenRouter: reasoning.effort), and craft-anything-cli ai effort lists and sets the same levels. Claude no longer accepts none or minimal. Refs #1813.
2026-11-14 12:20:31 +07:00
muraa-p 54c69977c9 Give a heading a script's bold face instead of its regular one (#1839)
Headings in Chinese or Japanese fell back to the script's regular face beside bold Latin, so they looked lighter. The medium and semibold families now try a script's bold face, where the bundled fonts have one, before its regular one (part of #1808).
2026-11-14 12:12:46 +07:00
Justin John c196ac88e0 Say before a Just ask question is sent when the project's builder can't answer it (R2.2) (#1815)
Just ask goes only to an agent that can be held to reading; with any other builder (Codex, OpenCode) the question was sent and only then refused. With Just ask on, the ask box now says beforehand that this builder isn't asked questions and to ask with Claude Code or an AI with an API key, and Send keeps such a question in the box with the same reason. Refs #1695.
2026-11-14 11:49:13 +07:00
muraa-p bdd7141509 Say at startup when the settings file couldn't be loaded (#1834) (#1834)
When config.toml can't be read or set aside, the app runs on default settings and refuses every save. The window now says so as soon as it opens, with the file's name and why, instead of only in the log.
2026-11-14 11:05:38 +07:00
GAlun fb3428280b Reject required WASM font builds when filtering leaves no fonts (R2.9) (#1755) (#1755)
With CRAFT_FONTS_REQUIRED set, a browser build whose craft-fonts manifest lists fonts but none the web allowlist keeps now fails with that reason, instead of building with an empty font table. Optional builds, native builds and an empty manifest's own error are unchanged.
2026-11-12 16:18:22 +07:00
Fury 2c97ec7e8a Fail a build that requires craft-fonts when CRAFT_FONTS_DIR is missing (R2.9) (#1736) (#1736)
CRAFT_FONTS_REQUIRED without CRAFT_FONTS_DIR is now a build error naming both, instead of a build with no fallback fonts where non-Latin scripts show as boxes. A manifest listing no fonts counts as a bad folder, and CRAFT_FONTS_REQUIRED set to nothing or 0 means not required. The decision is one tested function in build.rs.
2026-11-12 13:03:41 +07:00
Dylan M. Taylor 5b3f1d818f Add Help > Check for Updates and bump to 0.6.1 (#1706)
* feat(updates): add manual release checks and verified native updates

* chore: bump version to 0.6.1

* fix(flatpak): honor the launcher version choices

* fix(updates): report restart outcomes without UI process side effects

* fix(i18n): translate updater controls in the complete catalogs

* test: document native updater startup as UI plumbing
2026-11-11 19:43:41 -05:00
Thanh Nguyen 7116cc6cb4 Keep the working card's clock from painting over its words (#1687)
The working card ("Working on it" in a build's feed, "Working on your answer" in the chat) drew its elapsed clock with a right-to-left layout after the words had wrapped across the whole row, so on a narrow card the clock covered the end of the detail line. The card now measures the clock and keeps its width out of the words' column, so the words wrap before it; a UI test checks they don't overlap.
2026-11-11 20:46:17 +07:00
Alex Joaquim Pereira 80479a9b9e Use an attached project's saved builder and keep its feed and request (R2.9) (#1684)
After #1682, a run on a reattached project still used the builder picked on Make instead of the project's own, replaced the live conversation of a project already building, and cleared the Make draft even when the run didn't start. It now uses the saved builder (asking for one if it's gone), shows the running build's conversation and says it's already building, and clears the draft only once the request is running or queued. The run remains the only writer of the project's feed.
2026-11-11 20:11:12 +07:00
Alex Joaquim Pereira 2cee4610f0 Keep a reattached project's saved settings, conversation and follow-up request (R2.9) (#1682)
Since #987, picking a folder that already holds a project attaches to it, but the create path then overwrote its saved builder, asset budget, generated-assets choice and stack, replaced its conversation, and dropped the typed request. An attached project now keeps everything the person set and its saved conversation, and the request is added as its follow-up, in the app and the CLI; the CLI refuses --build-with, --generate-assets and --existing for such a folder with a fix to use instead.
2026-11-11 19:19:15 +07:00
The viewer 3483d7cc6e Keep build activity visible with long waiting notes (R2.9) (#1587)
A long follow-up pasted into the prompt box during a build made its waiting note taller than the window: the note was drawn outside the conversation's scroll area, so it pushed the prompt box off screen and left no room for the live activity. Waiting notes now sit inside the conversation's scroll area, above the live activity, with their Take back and Send now controls scrolling with them. Up arrow still brings back the last waiting note. A smoke test checks a 160-line note in a 600-point window.
2026-11-11 06:27:16 +07:00
ISTAARI 923c139eb1 Keep the Detect button clear of the Harnesses tab (R2.9) (#1530)
In Settings → AI the "Found on this computer" caption, the Providers and Harnesses tabs and the Detect button shared one row, with Detect pinned to the right, so at narrower widths it covered the Harnesses tab (#1519). The caption now sits on its own line, and the tabs and Detect share one spacing and wrap together. A smoke test checks both modes, empty and populated lists, and widths of 760, 900 and 1280 points, and that the Harnesses tab can still be chosen.
2026-11-11 00:31:16 +07:00
Alex Joaquim Pereira f975b6b369 Don't hand a build a capture made in the other mode (R2.9) (#1520)
A project's capture/ can be left by a study in the other mode, and the run only checked that the folder existed, so a Clean room build could be handed a Deep capture, and a Deep run could skip its inside study by using a Clean room one. craft.json now records the mode the current capture was studied in (capture_deep, format version 5; a version-4 capture migrates as Deep, like a saved session), and a run studies again when its capture isn't from its mode. A study clears the record before it starts, so one that fails partway leaves nothing a later run trusts, and a Clean room study removes the files only a Deep study writes (how-it-works.md, page.html, runs/). The extractor's fresh-study decision and the run queue use the same check.
2026-11-10 23:36:41 +07:00
Martinus 11d0042272 Recognise text files in target lists and triage (R3.11) (#1490)
A text file (notes, source code, settings) was a target of unknown kind, so the target list and triage called it a file we don't recognise yet. Text now has its own target kind, found by the same check the text reader uses (a byte-order mark, or valid UTF-8 with no zero bytes and few control characters near the start) after every other format, so lists and triage call it a text file and point to core_text_read. A binary file stays unknown.
2026-11-10 22:01:38 +07:00
Alex Joaquim Pereira ca6f2f9695 Don't let a key save outlive the backend it belongs to (R5.5) (#1495)
A key save still in flight could write the key back after the backend's removal had deleted its key and configuration, leaving an orphan key that a backend re-added under the same name would silently use. Saving or forgetting a key and removing a backend now take turns, so a save that comes after a remove fails, and Settings keeps a backend's remove button disabled while its key is being saved or forgotten.
2026-11-10 21:40:47 +07:00
Alex Joaquim Pereira 16f05f6f2b Scroll the AI settings page in the add-by-address smoke test (#1492)
The key row #1486 added for every API backend pushed the add-by-address form's Add button below the AI settings page's visible area, so the test's click could land outside it and the test failed now and then. It now scrolls the page first, as a person would.
2026-11-10 21:09:22 +07:00
Alex Joaquim Pereira 6db3a29665 Replace a saved API key from Settings and the CLI (R5.5) (#1486)
A key saved in the app silently wins over the one in the environment, so a rotated key stayed hidden behind the old one unless the backend was removed or the keychain edited by hand. Settings → AI now shows for every API backend whether a key is saved; a saved one can be forgotten, so the environment's is used again, and a new one saved in its place, without removing the backend. The CLI does the same with ai key <name> (--key-env, --key-stdin or --forget), and never prints the key. A new key is read back after saving, and a forget that a locked or failing keychain can't confirm says so instead of reporting success.

Refs #1358
2026-11-10 20:09:44 +07:00
김준호 c95d361218 Read a text source as text outside a build (R3.11) (#1480)
A text file outside a build (a script, Markdown, settings, a log) could only be searched byte by byte: the native tools refused it and build_file_read works only in a build. The new core_text_read (Deep mode) reads one as text, a page of lines at a time: UTF-8, or UTF-16 with a byte-order mark, invalid bytes shown as U+FFFD and counted, very long lines cut and named, and a file with zero bytes near its start refused as binary. Nothing is run.

Fixes #539
2026-11-10 18:13:09 +07:00
FuryNocturnTV (Tare Fernandez) 62187d5663 Say in Settings when a saved agent program is gone (R2.2) (#1468)
When a coding agent's saved program had gone (an update moved it), another program ran in its place with nothing in Settings saying so. Settings → AI now says under the agent's program that it isn't there any more and which program runs in its place, read on the worker that loads the AI list, and offers "Use it" to save that program when it's a path of its own.

Refs #721
2026-11-10 17:45:03 +07:00
Tanish Manku 4a9a19c2ef Let strings awaiting translation pass the coverage check (R5.2) (#1477) 2026-11-10 03:43:29 -07:00
FuryNocturnTV (Tare Fernandez) d8d0abb8ab Let a person stop adding a server while it's asked for its models (R5.4) (#1460)
Adding a server by its address can wait up to a minute for one that was reached but is still starting or loading a model, and that wait could only run out. The form now has a way to stop it: the request runs on a helper thread and the wait checks for a stop every 100 ms, so it ends at once, nothing is added, and the app says it stopped adding the server instead of giving address advice.
2026-11-10 12:17:41 +07:00
Tanish Manku a56e0cc3f7 Pace the jobs list's progress bar (R5.2) (#1440)
A job of unknown length drew its progress bar with egui's animated ProgressBar, which asks for a frame every frame, so the window redrew at the display's rate for as long as the job ran, even in the background (as the spinner did before #579). The jobs list now uses our own progress bar: filled to a known fraction with no frames asked for, or sweeping at the animation's pace (once a second in the background) when the fraction isn't known.
2026-11-10 10:27:07 +07:00
JG Tromp 1c7c462f5b Show a server connecting and give it a minute when adding it by address (R5.4) (#1430)
Adding a model server by its address showed nothing while it connected and gave up after 10 seconds, then said to check the address even when the server had been reached. The form now shows "Connecting to <name>…" with a spinner and the seconds waited, and Add can't be pressed again meanwhile. The server has a minute to list its models once reached, and one that was reached but didn't answer in time is told it may still be starting or loading a model, to wait and add it again.

Fixes #1429
2026-11-10 04:44:31 +07:00