diff --git a/mongodb-query-index-check/README.md b/mongodb-query-index-check/README.md index e9a0ea4..6bf622b 100644 --- a/mongodb-query-index-check/README.md +++ b/mongodb-query-index-check/README.md @@ -70,7 +70,7 @@ jobs: | `anthropic-api-key` | yes | — | Anthropic API key passed through to `anthropics/claude-code-action`. | | `github-token` | no | `${{ github.token }}` | Token used to post review comments. | | `apify-core-token` | no | _(empty)_ | When set, fetches `mongo-indexes` from `apify/apify-core@develop`. When empty, the action assumes it is running on `apify-core` and reads `src/packages/mongo-indexes/src` from the workspace. | -| `max-turns` | no | `30` | Maximum turns Claude may take. | +| `max-turns` | no | `100` | Maximum turns Claude may take. The default headroom fits large multi-file PRs; Claude only spends what it needs. | | `paths` | no | TS/JS source files | Comma-separated globs to include. | | `request-changes` | no | `true` | When `true`, fail the check on any finding. When `false`, comment only. | diff --git a/mongodb-query-index-check/action.yaml b/mongodb-query-index-check/action.yaml index ee84c22..d6bcf95 100644 --- a/mongodb-query-index-check/action.yaml +++ b/mongodb-query-index-check/action.yaml @@ -21,9 +21,9 @@ inputs: required: false default: '' max-turns: - description: 'Maximum turns Claude may take. Default 30.' + description: 'Maximum turns Claude may take. Default 100.' required: false - default: '30' + default: '100' paths: description: >- Comma-separated glob patterns of files to inspect (matched against PR file paths). @@ -157,6 +157,10 @@ runs: anthropic_api_key: ${{ inputs.anthropic-api-key }} github_token: ${{ inputs.github-token }} prompt: ${{ steps.render.outputs.prompt }} + # Dump the full conversation trace (every tool call, response, and permission denial) + # to the workflow log. Costs nothing extra, makes debugging tractable when Claude hits + # the turn cap or gets blocked by an allowlist gap. + show_full_output: true claude_args: >- --max-turns ${{ inputs.max-turns }} --model claude-opus-4-7