checkpoint

⚒️ Generated with [Fabro](https://fabro.sh)
This commit is contained in:
Fabro 2026-03-21 12:14:07 -04:00
parent 7fcc9750fc
commit 6718d3db98
6 changed files with 366 additions and 9 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,177 @@
Goal: # Fix: Workflow TOML config lost in detach mode
## Context
When running `fabro run -d implement-plan`, the `[pull_request]` config from `fabro.toml` / `cli.toml` / `workflow.toml` is silently dropped, so no PR is created despite `enabled = true` at all config levels.
**Root cause chain**:
1. `create.rs` tries to copy the workflow TOML as `run.toml`, but checks the **raw CLI arg** (`"implement-plan"` — no extension) instead of the resolved path. So `run.toml` is never saved.
2. `RunEngine` always uses cached `graph.fabro` (a DOT file), so `prepare_workflow` returns `run_cfg = None`, losing all TOML-level config.
3. `pull_request` and `asset_globs` in `RunConfig` only check `run_cfg` without falling back to `run_defaults`.
## Fix 1: Serialize merged `run_cfg` to `run.toml` in create.rs
**File**: `lib/crates/fabro-cli/src/commands/create.rs`
Replace the raw-file-copy block (lines 53-58) with serialization of the already-merged `WorkflowRunConfig`:
- Change `let prep = prepare_workflow(...)` to `let mut prep = ...`
- Replace the extension check with:
```rust
if let Some(mut cfg) = prep.run_cfg.take() {
cfg.graph = "graph.fabro".to_string();
let toml_str = toml::to_string_pretty(&cfg)
.context("Failed to serialize run config")?;
tokio::fs::write(run_dir.join("run.toml"), toml_str).await?;
}
```
- Add `use anyhow::Context;` if needed
**Why serialize instead of copy**: The raw TOML's `graph` field (e.g. `"workflow.fabro"`) would point to a nonexistent file in the run dir. Serializing lets us rewrite `graph` to `"graph.fabro"` (the cached name). The serialized config also has all defaults merged, env vars resolved, and dockerfiles inlined — making the run dir self-contained.
**Why `take()` not `clone()`**: `WorkflowRunConfig` doesn't derive `Clone`, and `prep.run_cfg` is unused after this point in `create.rs`.
## Fix 2: Use `run.toml` in RunEngine path
**File**: `lib/crates/fabro-cli/src/main.rs` (lines 727-733)
Replace the workflow path resolution to use `run.toml`:
```rust
let cached_toml = run_dir.join("run.toml");
let workflow_path = if cached_toml.exists() {
cached_toml
} else {
run_dir.join("graph.fabro")
};
```
When `run.toml` exists, `prepare_workflow` → `resolve_workflow` sees `.toml`, calls `load_run_config`, and `resolve_graph_path` resolves `"graph.fabro"` relative to the run dir — pointing to the cached graph that already exists there.
## Fix 3: Add `run_defaults` fallbacks (defense-in-depth)
**File**: `lib/crates/fabro-cli/src/commands/run.rs`
Even with Fixes 1+2, bare `.fabro` files passed directly would still hit `run_cfg = None`. Add fallbacks matching the pattern already used elsewhere in the file:
**3a. `pull_request`** (line 1424-1428):
```rust
pull_request: run_cfg
.as_ref()
.and_then(|c| c.pull_request.as_ref())
.or(run_defaults.pull_request.as_ref())
.filter(|p| p.enabled)
.cloned(),
```
**3b. `asset_globs`** (line 1429-1433):
```rust
asset_globs: run_cfg
.as_ref()
.and_then(|c| c.assets.as_ref())
.or(run_defaults.assets.as_ref())
.map(|a| a.include.clone())
.unwrap_or_default(),
```
**3c. `devcontainer`** (line 969-973):
```rust
let devcontainer_config = if run_cfg
.as_ref()
.and_then(|c| c.sandbox.as_ref())
.or(run_defaults.sandbox.as_ref())
.and_then(|s| s.devcontainer)
.unwrap_or(false)
```
**3d. `sandbox.env`** (line 1300-1306):
```rust
if let Some(toml_env) = run_cfg
.as_ref()
.and_then(|c| c.sandbox.as_ref())
.or(run_defaults.sandbox.as_ref())
.and_then(|s| s.env.clone())
```
## Verification
1. `cargo build --workspace`
2. `cargo test --workspace`
3. `cargo clippy --workspace -- -D warnings`
4. Manual: `fabro run -d implement-plan` with `[pull_request] enabled = true` in `fabro.toml` → verify `run.toml` in run dir has `graph = "graph.fabro"` and `[pull_request]` → verify PR created
## Completed stages
- **toolchain**: success
- Script: `command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1`
- Stdout:
```
cargo 1.94.0 (85eff7c80 2026-01-15)
```
- Stderr: (empty)
- **preflight_compile**: success
- Script: `cargo check -q --workspace 2>&1`
- Stdout: (empty)
- Stderr: (empty)
- **preflight_lint**: success
- Script: `cargo clippy -q --workspace -- -D warnings 2>&1`
- Stdout: (empty)
- Stderr: (empty)
- **implement**: success
- Model: claude-opus-4-6, 20.7k tokens in / 5.3k out
- Files: /home/daytona/workspace/lib/crates/fabro-cli/src/commands/create.rs, /home/daytona/workspace/lib/crates/fabro-cli/src/commands/run.rs, /home/daytona/workspace/lib/crates/fabro-cli/src/main.rs
- **simplify_opus**: success
- Model: claude-opus-4-6, 50.7k tokens in / 13.4k out
- Files: /home/daytona/workspace/lib/crates/fabro-cli/src/commands/run.rs
# Simplify: Code Review and Cleanup
Review all changed files for reuse, quality, and efficiency. Fix any issues found.
## Phase 1: Identify Changes
Run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the most recently modified files that the user mentioned or that you edited earlier in this conversation.
## Phase 2: Launch Three Review Agents in Parallel
Use the Agent tool to launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.
### Agent 1: Code Reuse Review
For each change:
1. Search for existing utilities and helpers that could replace newly written code. Use Grep to find similar patterns elsewhere in the codebase — common locations are utility directories, shared modules, and files adjacent to the changed ones.
2. Flag any new function that duplicates existing functionality. Suggest the existing function to use instead.
3. Flag any inline logic that could use an existing utility — hand-rolled string manipulation, manual path handling, custom environment checks, ad-hoc type guards, and similar patterns are common candidates.
Note: This is a greenfield app, so focus on maximizing simplicity and don't worry about changing things to achieve it.
### Agent 2: Code Quality Review
Review the same changes for hacky patterns:
1. Redundant state: state that duplicates existing state, cached values that could be derived, observers/effects that could be direct calls
2. Parameter sprawl: adding new parameters to a function instead of generalizing or restructuring existing ones
3. Copy-paste with slight variation: near-duplicate code blocks that should be unified with a shared abstraction
4. Leaky abstractions: exposing internal details that should be encapsulated, or breaking existing abstraction boundaries
5. Stringly-typed code: using raw strings where constants, enums (string unions), or branded types already exist in the codebase
Note: This is a greenfield app, so be aggressive in optimizing quality.
### Agent 3: Efficiency Review
Review the same changes for efficiency:
1. Unnecessary work: redundant computations, repeated file reads, duplicate network/API calls, N+1 patterns
2. Missed concurrency: independent operations run sequentially when they could run in parallel
3. Hot-path bloat: new blocking work added to startup or per-request/per-render hot paths
4. Unnecessary existence checks: pre-checking file/resource existence before operating (TOCTOU anti-pattern) — operate directly and handle the error
5. Memory: unbounded data structures, missing cleanup, event listener leaks
6. Overly broad operations: reading entire files when only a portion is needed, loading all items when filtering for one
## Phase 3: Fix Issues
Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.
When done, briefly summarize what was fixed (or confirm the code was already clean).

View file

@ -0,0 +1,5 @@
{
"mode": "agent",
"provider": "openai",
"model": "gpt-5.4"
}

View file

@ -0,0 +1,43 @@
Reviewed and cleaned up the detach-mode fix.
What I changed
- `lib/crates/fabro-cli/src/commands/run.rs`
- Added shared helpers/constants for cached run files:
- `RUN_GRAPH_FILE`
- `RUN_CONFIG_FILE`
- `cached_graph_path()`
- `cached_run_config_path()`
- `write_run_config_snapshot()`
- Removed duplicated `run.toml` serialization logic from both create/run paths.
- Stopped mutating live `run_cfg` just to rewrite `graph`; snapshot serialization now rewrites the TOML via a serialized value instead.
- Centralized detached-workflow resolution in `resolve_workflow_source()`, with fallback from missing cached `run.toml` to sibling `graph.fabro` for backward compatibility.
- Reused the shared graph-path helper in the run-branch resume path too.
- Added focused tests for:
- snapshot serialization rewriting `graph`
- fallback from missing cached `run.toml` to `graph.fabro`
- `lib/crates/fabro-cli/src/commands/create.rs`
- Reused the shared cached-file helpers.
- Removed now-unneeded mutability and `Context` import.
- `lib/crates/fabro-cli/src/main.rs`
- Removed the `exists()` check.
- Detached engine now always points at cached `run.toml`; `prepare_workflow()` handles legacy fallback cleanly.
Why this cleanup
- Fixes the code-quality issue of mutating runtime config for persistence.
- Removes copy-pasted snapshot-writing logic.
- Removes the TOCTOU-style `exists()` check in detached startup.
- Centralizes the cached run-dir file contract.
Validation
- `cargo fmt --all`
- `cargo test -p fabro-cli`
- `cargo clippy -p fabro-cli -- -D warnings`
- `cargo build --workspace`
- `cargo clippy --workspace -- -D warnings`
- `cargo test --workspace`
All passed.
I did not run the manual PR-creation flow, so that part remains unverified in this environment.

View file

@ -0,0 +1,6 @@
{
"status": "success",
"notes": "Stage completed: simplify_gpt",
"failure_reason": null,
"timestamp": "2026-03-21T16:14:07.129648+00:00"
}

View file

@ -0,0 +1,102 @@
diff --git a/lib/crates/fabro-cli/src/commands/run.rs b/lib/crates/fabro-cli/src/commands/run.rs
index c5336799..264fbc48 100644
--- a/lib/crates/fabro-cli/src/commands/run.rs
+++ b/lib/crates/fabro-cli/src/commands/run.rs
@@ -610,7 +610,7 @@ pub async fn run_command(
let PreparedWorkflow {
source,
graph,
- run_cfg,
+ mut run_cfg,
sandbox_provider,
model,
provider,
@@ -698,10 +698,11 @@ pub async fn run_command(
);
});
- if workflow_path.extension().is_some_and(|ext| ext == "toml") {
- if let Ok(toml_contents) = tokio::fs::read(workflow_path).await {
- tokio::fs::write(run_dir.join("run.toml"), toml_contents).await?;
- }
+ // Serialize the merged run config so the run dir is self-contained
+ if let Some(ref mut cfg) = run_cfg {
+ cfg.graph = "graph.fabro".to_string();
+ let toml_str = toml::to_string_pretty(&*cfg).context("Failed to serialize run config")?;
+ tokio::fs::write(run_dir.join("run.toml"), toml_str).await?;
}
// Create progress UI (used for both normal and verbose modes)
diff --git a/lib/crates/fabro-model/src/.catalog.rs.pending-snap b/lib/crates/fabro-model/src/.catalog.rs.pending-snap
deleted file mode 100644
index c30cbf5d..00000000
--- a/lib/crates/fabro-model/src/.catalog.rs.pending-snap
+++ /dev/null
@@ -1,7 +0,0 @@
-{"run_id":"1774108419-651283619","line":604,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"gpt_5_3_codex_spark_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":604,"expression":"m"},"snapshot":"ModelInfo {\n id: \"gpt-5.3-codex-spark\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.3 Codex Spark\",\n limits: ModelLimits {\n context_window: 131072,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: false,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: None,\n output_cost_per_mtok: None,\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 1000.0,\n ),\n aliases: [\n \"codex-spark\",\n ],\n default: false,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"gpt-5.3-codex-spark\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.3 Codex Spark\",\n limits: ModelLimits {\n context_window: 131072,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: false,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: None,\n output_cost_per_mtok: None,\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 1000.0,\n ),\n aliases: [\n \"codex-spark\",\n ],\n default: false,\n}"}}
-{"run_id":"1774108419-651283619","line":333,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"gemini_3_1_flash_lite_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":333,"expression":"m"},"snapshot":"ModelInfo {\n id: \"gemini-3.1-flash-lite-preview\",\n provider: \"gemini\",\n family: \"gemini-3\",\n display_name: \"Gemini 3.1 Flash Lite (Preview)\",\n limits: ModelLimits {\n context_window: 1048576,\n max_output: Some(\n 65536,\n ),\n },\n training: Some(\n \"2025-01-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.25,\n ),\n output_cost_per_mtok: Some(\n 1.5,\n ),\n cache_input_cost_per_mtok: Some(\n 0.0625,\n ),\n },\n estimated_output_tps: Some(\n 200.0,\n ),\n aliases: [\n \"gemini-flash-lite\",\n ],\n default: false,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"gemini-3.1-flash-lite-preview\",\n provider: \"gemini\",\n family: \"gemini-3\",\n display_name: \"Gemini 3.1 Flash Lite (Preview)\",\n limits: ModelLimits {\n context_window: 1048576,\n max_output: Some(\n 65536,\n ),\n },\n training: Some(\n \"2025-01-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.25,\n ),\n output_cost_per_mtok: Some(\n 1.5,\n ),\n cache_input_cost_per_mtok: Some(\n 0.0625,\n ),\n },\n estimated_output_tps: Some(\n 200.0,\n ),\n aliases: [\n \"gemini-flash-lite\",\n ],\n default: false,\n}"}}
-{"run_id":"1774108419-651283619","line":254,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"get_model_info_by_id","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":254,"expression":"info"},"snapshot":"ModelInfo {\n id: \"claude-opus-4-6\",\n provider: \"anthropic\",\n family: \"claude-4\",\n display_name: \"Claude Opus 4.6\",\n limits: ModelLimits {\n context_window: 1000000,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 15.0,\n ),\n output_cost_per_mtok: Some(\n 75.0,\n ),\n cache_input_cost_per_mtok: Some(\n 1.5,\n ),\n },\n estimated_output_tps: Some(\n 25.0,\n ),\n aliases: [\n \"opus\",\n \"claude-opus\",\n ],\n default: false,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"claude-opus-4-6\",\n provider: \"anthropic\",\n family: \"claude-4\",\n display_name: \"Claude Opus 4.6\",\n limits: ModelLimits {\n context_window: 1000000,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 15.0,\n ),\n output_cost_per_mtok: Some(\n 75.0,\n ),\n cache_input_cost_per_mtok: Some(\n 1.5,\n ),\n },\n estimated_output_tps: Some(\n 25.0,\n ),\n aliases: [\n \"opus\",\n \"claude-opus\",\n ],\n default: false,\n}"}}
-{"run_id":"1774108419-651283619","line":492,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"gpt_5_4_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":492,"expression":"m"},"snapshot":"ModelInfo {\n id: \"gpt-5.4\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.4\",\n limits: ModelLimits {\n context_window: 1047576,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 2.5,\n ),\n output_cost_per_mtok: Some(\n 15.0,\n ),\n cache_input_cost_per_mtok: Some(\n 0.25,\n ),\n },\n estimated_output_tps: Some(\n 70.0,\n ),\n aliases: [\n \"gpt54\",\n \"gpt-54\",\n ],\n default: true,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"gpt-5.4\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.4\",\n limits: ModelLimits {\n context_window: 1047576,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 2.5,\n ),\n output_cost_per_mtok: Some(\n 15.0,\n ),\n cache_input_cost_per_mtok: Some(\n 0.25,\n ),\n },\n estimated_output_tps: Some(\n 70.0,\n ),\n aliases: [\n \"gpt54\",\n \"gpt-54\",\n ],\n default: true,\n}"}}
-{"run_id":"1774108419-651283619","line":538,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"gpt_5_4_pro_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":538,"expression":"m"},"snapshot":"ModelInfo {\n id: \"gpt-5.4-pro\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.4 Pro\",\n limits: ModelLimits {\n context_window: 1047576,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 30.0,\n ),\n output_cost_per_mtok: Some(\n 180.0,\n ),\n cache_input_cost_per_mtok: Some(\n 3.0,\n ),\n },\n estimated_output_tps: Some(\n 20.0,\n ),\n aliases: [\n \"gpt54-pro\",\n \"gpt-54-pro\",\n ],\n default: false,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"gpt-5.4-pro\",\n provider: \"openai\",\n family: \"gpt-5\",\n display_name: \"GPT-5.4 Pro\",\n limits: ModelLimits {\n context_window: 1047576,\n max_output: Some(\n 128000,\n ),\n },\n training: Some(\n \"2025-08-31\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 30.0,\n ),\n output_cost_per_mtok: Some(\n 180.0,\n ),\n cache_input_cost_per_mtok: Some(\n 3.0,\n ),\n },\n estimated_output_tps: Some(\n 20.0,\n ),\n aliases: [\n \"gpt54-pro\",\n \"gpt-54-pro\",\n ],\n default: false,\n}"}}
-{"run_id":"1774108419-651283619","line":446,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"mercury_2_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":446,"expression":"m"},"snapshot":"ModelInfo {\n id: \"mercury-2\",\n provider: \"inception\",\n family: \"mercury\",\n display_name: \"Mercury 2\",\n limits: ModelLimits {\n context_window: 131072,\n max_output: Some(\n 50000,\n ),\n },\n training: None,\n features: ModelFeatures {\n tools: true,\n vision: false,\n reasoning: true,\n effort: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.25,\n ),\n output_cost_per_mtok: Some(\n 0.75,\n ),\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 1000.0,\n ),\n aliases: [\n \"mercury\",\n ],\n default: true,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"mercury-2\",\n provider: \"inception\",\n family: \"mercury\",\n display_name: \"Mercury 2\",\n limits: ModelLimits {\n context_window: 131072,\n max_output: Some(\n 50000,\n ),\n },\n training: None,\n features: ModelFeatures {\n tools: true,\n vision: false,\n reasoning: true,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.25,\n ),\n output_cost_per_mtok: Some(\n 0.75,\n ),\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 1000.0,\n ),\n aliases: [\n \"mercury\",\n ],\n default: true,\n}"}}
-{"run_id":"1774108419-651283619","line":386,"new":{"module_name":"fabro_model__catalog__tests","snapshot_name":"kimi_k2_5_in_catalog","metadata":{"source":"lib/crates/fabro-model/src/catalog.rs","assertion_line":386,"expression":"m"},"snapshot":"ModelInfo {\n id: \"kimi-k2.5\",\n provider: \"kimi\",\n family: \"kimi-k2\",\n display_name: \"Kimi K2.5\",\n limits: ModelLimits {\n context_window: 262144,\n max_output: Some(\n 16000,\n ),\n },\n training: Some(\n \"2025-10-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: false,\n effort: false,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.6,\n ),\n output_cost_per_mtok: Some(\n 3.0,\n ),\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 50.0,\n ),\n aliases: [\n \"kimi\",\n ],\n default: true,\n}"},"old":{"module_name":"fabro_model__catalog__tests","metadata":{},"snapshot":"ModelInfo {\n id: \"kimi-k2.5\",\n provider: \"kimi\",\n family: \"kimi-k2\",\n display_name: \"Kimi K2.5\",\n limits: ModelLimits {\n context_window: 262144,\n max_output: Some(\n 16000,\n ),\n },\n training: Some(\n \"2025-10-01\",\n ),\n features: ModelFeatures {\n tools: true,\n vision: true,\n reasoning: false,\n },\n costs: ModelCosts {\n input_cost_per_mtok: Some(\n 0.6,\n ),\n output_cost_per_mtok: Some(\n 3.0,\n ),\n cache_input_cost_per_mtok: None,\n },\n estimated_output_tps: Some(\n 50.0,\n ),\n aliases: [\n \"kimi\",\n ],\n default: true,\n}"}}
diff --git a/lib/crates/fabro-model/src/catalog.rs b/lib/crates/fabro-model/src/catalog.rs
index ae90f442..525a0e6a 100644
--- a/lib/crates/fabro-model/src/catalog.rs
+++ b/lib/crates/fabro-model/src/catalog.rs
@@ -270,6 +270,7 @@ mod tests {
tools: true,
vision: true,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -349,6 +350,7 @@ mod tests {
tools: true,
vision: true,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -402,6 +404,7 @@ mod tests {
tools: true,
vision: true,
reasoning: false,
+ effort: false,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -460,6 +463,7 @@ mod tests {
tools: true,
vision: false,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -508,6 +512,7 @@ mod tests {
tools: true,
vision: true,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -554,6 +559,7 @@ mod tests {
tools: true,
vision: true,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: Some(
@@ -620,6 +626,7 @@ mod tests {
tools: true,
vision: false,
reasoning: true,
+ effort: true,
},
costs: ModelCosts {
input_cost_per_mtok: None,