mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-09 04:42:30 -04:00
- `available_providers` holds the static enum tag names; drop the dupe loop, its errdefer and the per-string frees. - `reconcileModel` returns `error.ModelNotAvailable` directly instead of a `use`/`abort` union the caller only mapped to that same error. - `runCommand`/`printCommandResult` take `Command.ToolCall`; the caller already has it, so the unreachable "no tool mapping" branches go. - `handleSave` reuses `rememberSavePath`, which now propagates its allocation failure so a first save under OOM warns instead of unwrapping a null `save_path`. - `SlashCommand.all_names` is a comptime `++` of the three name lists. - `buildUserMessageParts` reads the attachment once for both text and image, and prepends the text part instead of copying the list. - `printSeverity`/`formatBulletLine` use `allocPrint` and the shared `emitStderr`; drop an unreachable `ends_ws` check in `renderMetaHint`.