Troubleshooting
Start with the Actions run log. A successful workflow with no bot comment can mean the job safely skipped, there were no findings, or a scanner had no posting token.
| Symptom | Check |
|---|---|
| The caller never starts | Confirm it is in .github/workflows/, the event and target branch match, and its *_ENABLED switch is true. Comment and dispatch workflows need to be present on the default branch. |
| A reusable workflow or action cannot be resolved | Check that the full SHA exists in the action source repository and points to the expected file. See pinning. |
| Static scan only logs | This is expected for a fork, Dependabot, or missing App credentials. Read the log even if no line comments were posted. |
| Review/reply skipped | Check fork status, the draft and author gates, pr_review.base_branches, and the App inputs. Missing provider settings produce a setup comment and a failed job. A reply also needs a recognized thread or mention and a commenter with write, maintain, or admin permission. |
| App token step fails | Verify the App ID and private key, installation access to the caller, accepted permission updates, and the permission slice requested by the job. |
| Model calls fail with 401, 403, or an unknown model | Check that the caller forwards every provider secret or credential slot the role chain uses, that each slot holds the key for its connection type, and that the model ID is available to that account. For a compatible endpoint, check its base_url against the endpoint rules. For Cloudflare, the account and gateway IDs. |
| Inference document rejected | Fix the named key. The document must be version: 1, use only known keys, and reference existing connections and profiles. Section-level model and reasoning keys fail with a migration error. Move them to top-level settings or jobs in the settings file. |
| PR review paused at the cap | Read the partial result. Reduce paths or chunk budgets, choose a lower-cost profile, or adjust the cap on the default branch. An incomplete review does not move the last fully reviewed checkpoint. |
| Weekly review picked no area or listed unchecked findings | Confirm the reviewed branch contains area files with paths frontmatter. Check the context omissions and spend summary. Unchecked findings are not filed. With one profile, or a checker that shares the finder's model ID, every finding stays unchecked. Add an independent weekly_confirm profile. |
| Invalid configuration | Fix the named key or override and check its accepted type. A JSON number in the file is different from a string. The workflow override is passed as a string and parsed by Code Hawk. For model routes and caps, fix the default-branch settings. Other PR review rules come from the base commit. |
| Fix or flow run refuses to start | Check that the trusted test-image or application-image is pinned by @sha256 digest and that application-command is a JSON argv array. There is no host fallback. |
| Fix run created no draft | Check for eligible labelled/selected issues, configured test_commands, a patch matching a test path, and a failing-before/passing-after result. Review the recorded reason. Reapply the label for a retry. |
| Browser sign-in or setup blocked | Check that the managed application container starts and seeds the app, its fixture user and TOTP encoding, Playwright package/image match, and allowlisted setup inputs. See browser flows. |
| No browser media link | Check the S3 API endpoint, bucket region, and scoped key permissions in the run log. Old links expire after seven days. The recordings can still be retained by the configured bucket lifecycle. |
Settings problems
Section titled “Settings problems”Setup problems fail the job with exit code 1. A PR adding the first settings file to the default branch gets a passing setup notice instead, with no model call. Review, reply and pull request flows remove any stale setup comment. Settings on the PR head are never used before merge. PR review, replies and requested fixes keep one bot-owned setup comment, updating it on later failures. Review and reply remove it after the checks pass. Every model job writes the same message to the step summary and an error annotation. Keys and provider response bodies never appear in these messages.
| Setup message | Action |
|---|---|
| Code Hawk needs a provider and a model. | Add provider and model to the settings file on the default branch. There are no implicit defaults. |
| Code Hawk could not read its settings. | Correct JSON syntax or the named field on the default branch. Use the settings reference. |
| Code Hawk has no key for the provider. | Save the named Actions secret and forward it to the workflow. Only routes used by this job need keys. |
| The provider refused the key. | Replace the named secret with a valid provider key and rerun. Google 400 errors count as a rejected key only when the body identifies an API-key error. |
| The provider does not offer the model to this key. | Check the available model ids and correct the named setting on the default branch. With a legacy override, correct its named profile instead. |
| Code Hawk could not check its settings. | The provider returned a request error without identifying an invalid API key. Check the settings and rerun. |
A PR that edits .github/codehawk.json keeps using the default-branch copy until merge. An old CODEHAWK_INFERENCE variable overrides file routes for this release and prints a deprecation warning. Remove the input after migrating. Compatible endpoints without a usable models list and Cloudflare gateways can report key or model problems only on the first real model call.
Installation setup
Section titled “Installation setup”| Symptom | Check |
|---|---|
| The setup pull request contains only settings | GitHub refused workflows write or a workflow path policy. Copy the YAML in the PR body to .github/workflows/codehawk.yml, pick a provider and model, add the key secret, then merge. |
| No setup pull request yet | Large installs take about an hour per 60 repositories, plus discovery, retries and other installations. The hourly sweep recovers missed deliveries. A paused Worker or empty release table defers setup. |
| A repository was skipped | Existing current or legacy settings, an open setup PR or an existing codehawk/setup branch prevent another automatic write. Archived, disabled, forked, empty, renamed or inaccessible repositories are also skipped. Installation denials and queue caps can prevent work. |
| A fresh setup pull request is needed | Close the old PR, delete codehawk/setup, remove settings if starting over, and remove and re-add the repository after 24 hours. Sweeps skip repositories already handled. |
| An installation webhook failed | Creation and addition accept signed bodies up to 25 MB and discover repositories through the API, with no reliance on the payload list. Other events keep the 1 MiB limit. The hourly sweep is the safety net. |
Maintainers can inspect the setup queue's outcome logs by installation and repository id. Rate limits delay the whole queue. Repository attempts stop after five failures and pending work expires after seven days. The queue holds at most 2,000 repositories per installation and 10,000 overall. Repositories skipped at capacity remain eligible for a later sweep while they have no recorded outcome.