Skip to content

fix: make main compile and pass CI - #1

Merged
ivomarino merged 4 commits into
mainfrom
claude/project-thread-pami9v
Sep 30, 2026
Merged

ivomarino merged 4 commits into
mainfrom
claude/project-thread-pami9v

Conversation

@ivomarino

Copy link
Copy Markdown
Owner

Requested by Ivo · project thread

What & why

Main did not compile: api::secrets and api::github_connector were merged into the router without being declared, SecretStore::get had a &RwLockReadGuard vs &Value mismatch, and app.js changed without the APP_VER/sw.js bump the checks job requires. Fixing those exposed further breakage, fixed here too:

  • github_connector.rs used the urlencoding crate, which isn't a dependency; replaced with a small percent_encode.
  • /api/secrets/:path is invalid in axum 0.8 and panics when the router is built; now /api/secrets/{path}.
  • The six new routes were missing from ROUTE_TABLE (caught by the AF-116 test).
  • Every AppState initializer in tests and the sweep_server example needed the new secrets field; added SecretStore::empty().
  • Bumped APP_VER and sw.js CACHE to 0.9.717.

Checklist

  • One focused change: get main green
  • cargo check --workspace and cargo clippy --workspace --all-targets -- -D warnings clean
  • cargo test --workspace: cargo test -p amux-server passes except 6 autofix tests, which fail in my sandbox because the disk-floor detector fires at 8.9 GB free (environmental)
  • Client change: bumped APP_VER and CACHE, node --check passes
  • Tested end-to-end: not driven against a live server
  • Based on latest main

How I tested

cargo check, cargo clippy -D warnings, cargo test -p amux-server.

Known, left alone: POST /api/secrets/{path} returns ok without persisting (existing TODO).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MnV2XzAQTZHE8gsGMzGstC


Generated by Claude Code

…secrets, axum 0.8 route syntax)

- declare api::secrets and api::github_connector
- fix &RwLockReadGuard type mismatch in SecretStore::get
- replace missing urlencoding crate with a small percent_encode
- '/api/secrets/:path' panicked at router build under axum 0.8; use {path}
- add the new routes to ROUTE_TABLE (AF-116 test caught the omission)
- give every AppState test/example initializer a secrets store
- bump APP_VER and sw.js CACHE to 0.9.717 (checks.yml version guard)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnV2XzAQTZHE8gsGMzGstC
@ivomarino ivomarino self-assigned this Sep 30, 2026
…pi guard

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnV2XzAQTZHE8gsGMzGstC
…--doc)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnV2XzAQTZHE8gsGMzGstC
…e viewport

The Secrets nav tab made the global menu 26px taller than an 800px window,
so e2e tab-customizer.spec.ts saw it clipped by BODY. Cap its height.
Bump APP_VER/CACHE to 0.9.718.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnV2XzAQTZHE8gsGMzGstC
@ivomarino
ivomarino marked this pull request as ready for review September 30, 2026 15:32
@ivomarino
ivomarino merged commit 53f4f33 into main Sep 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants