Skip to content

fix(ci): unblock main — ruff format drift + CLI refresh_cron field#2427

Open
benfrank241 wants to merge 1 commit into
mainfrom
fix/main-ci-unblock
Open

fix(ci): unblock main — ruff format drift + CLI refresh_cron field#2427
benfrank241 wants to merge 1 commit into
mainfrom
fix/main-ci-unblock

Conversation

@benfrank241

Copy link
Copy Markdown
Member

Summary

Two pre-existing failures on main are currently red on every open PR (e.g. #2385, #2417) even though those PRs don't touch the affected files. This unblocks them.

1. verify-generated-files — ruff-format drift

hindsight-api-slim/tests/test_chunking.py and tests/test_retain_append_mode.py were committed without running the formatter (trailing whitespace + json.dumps([...]) that ruff reflows to multi-line). The job runs lint.sh, which reformats them → diff → fail. Fixed by running ./scripts/hooks/lint.sh.

2. test-doc-examples (cli) — CLI out of sync with the client

refresh_cron was added to MentalModelTriggerInput, but hindsight-cli/src/commands/mental_model.rs was never updated, so the CLI no longer compiled (missing field refresh_cron, lines 120 & 198). Set refresh_cron: None in both trigger initializers (create + update), preserving existing behaviour.

Verification

  • lint.sh clean; the two test files now match formatter output.
  • cargo check on hindsight-cli passes (regenerates the client from the spec and compiles).

🤖 Generated with Claude Code

Two pre-existing failures on main were blocking every open PR:

- verify-generated-files: ruff-format drift in test_chunking.py and
  test_retain_append_mode.py (trailing whitespace + json.dumps reflow).
  Fixed by running lint.sh.
- test-doc-examples (cli): hindsight-cli/src/commands/mental_model.rs no
  longer compiled after refresh_cron was added to MentalModelTriggerInput.
  Set refresh_cron: None in both trigger initializers (create + update).
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.

1 participant