chore: untrack decisions-log.md (autopilot scratch file)
The autopilot worker prompt instructed writing decisions to decisions-log.md at worktree root, but didn't exclude it from git add — so each worker committed its version, causing add/add merge conflicts between sibling PRs in the prices milestone. Add to .gitignore so future autopilot runs leave the scratch file local only.
This commit is contained in:
parent
edd1a5cbe4
commit
55c610c1f2
2 changed files with 1 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -57,3 +57,4 @@ src-tauri/gen/
|
|||
.claude/settings.local.json
|
||||
.claude/scheduled_tasks.lock
|
||||
.claude/worktrees/
|
||||
decisions-log.md
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
## Issue #155 — fetch_price token loading refactor (MEDIUM)
|
||||
The existing `license_commands.rs` token loading lives in `activation_path()` + `fs::read_to_string()` spread across the file — no single public helper reads the activation token. To keep tests clean (avoid touching the file system), the implementation extracts a private `fetch_price_with_token(token, symbol, date)` function and a thin public `fetch_price` wrapper that reads the activation token from disk and delegates. Tests call the inner function directly, injecting a fake token string. This avoids the need for a temp file setup in every test, keeps the coupling minimal, and matches the existing pattern used in `validate_with_key` (pure inner fn + thin Tauri command wrapper).
|
||||
|
||||
## Issue #155 — FetchPriceError serialization format (MEDIUM)
|
||||
The `Result<PriceResponse, String>` boundary requires serializing `FetchPriceError` to a `String`. Chosen: `serde_json::to_string(&err).unwrap_or("{\"code\":\"internal\"}".to_string())`. This gives the JS layer a stable JSON string it can `JSON.parse()` to read the `code` field and the optional `retry_after_s`. The serde tag `#[serde(tag = "code", rename_all = "snake_case")]` produces `{"code":"auth"}`, `{"code":"rate_limit","retry_after_s":42}` etc. — clean and consistent with the spec's `error.code` shape.
|
||||
|
||||
## Issue #155 — MAXIMUS_API_URL env var in tests (MEDIUM)
|
||||
`std::env::set_var` is deprecated as unsafe in Rust 1.81+ due to multi-threading concerns. However, the tests use `#[tokio::test]` (each runs in isolation) and the set_var call happens before any HTTP client is built, so the race window is practically zero. The alternative `mockito::Server::new_async()` returns a URL we need to inject; the simplest approach is env var override. We use `unsafe { std::env::set_var(...) }` with an explicit comment explaining the safety rationale. This matches common practice in Rust integration tests with mockito.
|
||||
Loading…
Reference in a new issue