Skip to content

[DOCS] Document infer-action enable-git-hooks and hooks-path inputs #597

Closed

Description

Summary

infer-action#337 adds two new action inputs that change default behavior for consumer repos: enable-git-hooks (default true) and hooks-path (default .githooks). The docs site's infer-action pages should document them.

Source: inference-gateway/infer-action#337 (resolves inference-gateway/infer-action#336)

Context

  • The action's "Configure Git" step now runs git config core.hooksPath <hooks-path> on its workspace before the agent starts whenever enable-git-hooks is true (the new default).
  • Agent commits therefore trigger the repo's own pre-commit hook (e.g. the prettier hook in inference-gateway/desktop).
  • A missing hooks path skips silently - repos without hooks see no behavior change.
  • Set enable-git-hooks: false to skip entirely.

Affected pages

  • infer-action inputs reference (new enable-git-hooks and hooks-path entries)
  • infer-action usage / configuration guide, next to git-operations docs

Proposed changes

  • Document both inputs with the new default (enabled), the no-hook no-op, and the hooks-path override for non-standard hook locations.
  • Note that a failing hook never strands work: the salvage step commits with --no-verify.

References

Activity

  1. added theissue type on Aug 29, 2026
  2. added
    documentation
    on Aug 29, 2026
  3. moved this to Todo in 2026on Aug 29, 2026
  4. edenreich commented on Aug 29, 2026

    @edenreich
    Contributor

    @infer Can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Aug 29, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    • Add issue [DOCS] Document infer-action enable-git-hooks and hooks-path inputs #597 to Roadmap board, set In progress
    • Read PR infer-action#337 for exact input names/defaults/behavior
    • Create fix/issue-597 branch and push
    • Document enable-git-hooks and hooks-path in inputs reference + usage guide
    • Validate: lint:md, format:check, build; commit + push
    • Open draft PR, set board Status = QA

    Pull Request

    #598

    ✅ Infer Result: Success

    Done. All work is committed and pushed; draft PR open for review:

    PR: #598 (fix/issue-597, draft, Resolves #597)

    What changed (github-action.md, one file)

    • Inputs reference: added enable-git-hooks (default true) and hooks-path (default .githooks) rows directly under enable-git-operations, matched to action.yml.
    • New "Repo git hooks" section in the usage guide: default-on behaviour (agent commits trigger the repo's pre-commit hook via git config core.hooksPath <hooks-path> on the action's workspace), the silent no-op when the hooks directory is missing, the hooks-path override for non-standard hook locations, and enable-git-hooks: false to opt out entirely.
    • Salvage note: hook failures never strand work - the salvage step commits with --no-verify.
    • "How it works" Git-config step now mentions the wiring; "Source reference" links infer-action#337 per the page's existing convention. Example pins @v0.51.0, the first release shipping the inputs (verified against the release notes).

    Validation

    bun run lint:md, bun run format:check, bun run build - all pass. Issue tracked on Roadmap 2026 board (In progress → QA).

    Noted in the PR but not changed (out of scope): the page's version pins (v0.47.0 / version-input v0.131.0 / max-turns 50) have drifted behind the action's actual defaults - a separate housekeeping pass would fix that. No separate [DOCS] ticket filed since this PR already lives in this repo, and the change has no downstream ripple to other org repos.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 4m 57s

    Tokens: 2,896,682 in · 13,727 out · 2,910,409 total (29 requests)

    Tool calls: 43 total · 100% success rate

    Traces
    Session: 1788015081-fc42e214
    
    session (headless, success)                                                  4m49s
    ├── chat ollama_cloud/glm-5.3-flash                                           3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.0s [error: *errors.errorString]
    ├── execute_tool Memory call_jzuknat7                                        100µs
    ├── execute_tool Read call_ys5kvrqp                                          145µs
    ├── chat ollama_cloud/glm-5.3-flash                                           4.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.4s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_hqsfg79r                                      66µs
    ├── execute_tool Bash call_c8dp2h3h                                          417ms
    ├── chat ollama_cloud/glm-5.3-flash                                           1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         1.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     1.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               1.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             1.9s [error: *errors.errorString]
    ├── execute_tool Bash call_zkwmdmko                                           1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.0s [error: *errors.errorString]
    ├── execute_tool Bash call_evvwczpf                                          663ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.1s [error: *errors.errorString]
    ├── execute_tool Grep call_p90smawn                                          832ms
    ├── execute_tool Bash call_8i9bn6s8                                          815ms
    ├── chat ollama_cloud/glm-5.3-flash                                           2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.0s [error: *errors.errorString]
    ├── execute_tool Memory call_s4eqd5zn                                        114µs
    ├── execute_tool Grep call_66yzprkx                                          775ms
    ├── chat ollama_cloud/glm-5.3-flash                                           2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.9s [error: *errors.errorString]
    ├── execute_tool Memory call_u2cd07o9                                         99µs
    ├── execute_tool Read call_q5bs62qk                                          401µs
    ├── chat ollama_cloud/glm-5.3-flash                                           4.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         4.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     4.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               4.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]             4.1s [error: *errors.errorString]
    ├── execute_tool Grep call_c1jydvgd                                            2ms
    ├── chat ollama_cloud/glm-5.3-flash                                           9.2s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         9.2s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     9.2s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               9.2s
    │               ╰── POST /v1/chat/completions [inference-gateway]             9.2s [error: *errors.errorString]
    ├── execute_tool Bash call_wc1jy6bc                                           50ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.7s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.7s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.7s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.7s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.7s [error: *errors.errorString]
    ├── execute_tool Bash call_z5wiubcy                                          455ms
    ├── chat ollama_cloud/glm-5.3-flash                                          13.6s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        13.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    13.6s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              13.6s
    │               ╰── POST /v1/chat/completions [inference-gateway]            13.6s [error: *errors.errorString]
    ├── execute_tool Read call_1yfj2xv2                                          150µs
    ├── execute_tool Bash call_b9awc3jm                                          812ms
    ├── chat ollama_cloud/glm-5.3-flash                                           8.3s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         8.3s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     8.2s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               8.2s
    │               ╰── POST /v1/chat/completions [inference-gateway]             8.2s [error: *errors.errorString]
    ├── execute_tool Bash call_e6416viv                                          457ms
    ├── chat ollama_cloud/glm-5.3-flash                                          55.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        55.3s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    55.3s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              55.3s
    │               ╰── POST /v1/chat/completions [inference-gateway]            55.3s [error: *errors.errorString]
    ├── execute_tool MultiEdit call_nj207e89                                     611µs
    ├── chat ollama_cloud/glm-5.3-flash                                          17.5s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        17.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    17.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              17.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]            17.4s
    ├── execute_tool Bash call_o9a6ifmh                                           3.8s [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                           2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.6s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.6s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.6s [error: *errors.errorString]
    ├── execute_tool Bash call_3enasxwc                                           3.7s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.9s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.9s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.9s [error: *errors.errorString]
    ├── execute_tool Bash call_dg9mwkdw                                           4.3s
    ├── execute_tool Bash call_eaceidm1                                           2.1s
    ├── chat ollama_cloud/glm-5.3-flash                                           3.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.1s [error: *errors.errorString]
    ├── execute_tool Bash call_kzmbnu72                                            5ms
    ├── execute_tool Bash call_05r5v8mr                                          19.4s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.7s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.7s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.7s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.7s [error: *errors.errorString]
    ├── execute_tool Bash call_lgohi99a                                            5ms
    ├── chat ollama_cloud/glm-5.3-flash                                          18.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        18.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    18.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              18.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]            18.1s [error: *errors.errorString]
    ├── execute_tool Read call_raxg7rdx                                          148µs
    ├── chat ollama_cloud/glm-5.3-flash                                           5.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         5.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.1s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.1s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.1s [error: *errors.errorString]
    ├── execute_tool Edit call_3xlatz83                                          783µs
    ├── chat ollama_cloud/glm-5.3-flash                                          11.2s
    │   ╰── POST /v1/chat/completions [inference-gateway]                        11.2s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]    11.2s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]              11.2s
    │               ╰── POST /v1/chat/completions [inference-gateway]            11.2s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_cj6fewtr                                      60µs
    ├── execute_tool Bash call_5x87a8jx                                           5.5s
    ├── execute_tool Bash call_fwk7rx4g                                           2.8s
    ├── execute_tool Bash call_qn1hgj4y                                          21.0s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.1s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.0s [error: *errors.errorString]
    ├── execute_tool Bash call_jouqnox1                                            5ms
    ├── chat ollama_cloud/glm-5.3-flash                                           3.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         3.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     3.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               3.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             3.0s [error: *errors.errorString]
    ├── execute_tool Bash call_nqzsek8l                                            5ms
    ├── chat ollama_cloud/glm-5.3-flash                                           7.7s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         7.6s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     7.6s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               7.6s
    │               ╰── POST /v1/chat/completions [inference-gateway]             7.6s [error: *errors.errorString]
    ├── execute_tool Write call_5dc7znl4                                           1ms
    ├── execute_tool Bash call_gixsermg                                           1.4s
    ├── chat ollama_cloud/glm-5.3-flash                                           2.4s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         2.4s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     2.4s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               2.4s
    │               ╰── POST /v1/chat/completions [inference-gateway]             2.4s [error: *errors.errorString]
    ├── execute_tool Bash call_odh48y5i                                           1.8s
    ├── chat ollama_cloud/glm-5.3-flash                                           8.1s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         8.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     8.0s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               8.0s
    │               ╰── POST /v1/chat/completions [inference-gateway]             8.0s [error: *errors.errorString]
    ├── execute_tool Bash call_ar26p8a6                                            4ms
    ├── execute_tool Bash call_68ij85t8                                          657ms
    ├── chat ollama_cloud/glm-5.3-flash                                           8.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         8.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     7.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               7.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             7.9s [error: *errors.errorString]
    ├── execute_tool Memory call_iasnlbdc                                         1.1s
    ├── execute_tool Bash call_astvdnv9                                          675ms
    ├── chat ollama_cloud/glm-5.3-flash                                           6.0s
    │   ╰── POST /v1/chat/completions [inference-gateway]                         6.0s
    │       ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     5.9s [error: *errors.errorString]
    │           ╰── POST /proxy/:provider/*path [inference-gateway]               5.9s
    │               ╰── POST /v1/chat/completions [inference-gateway]             5.9s [error: *errors.errorString]
    ├── execute_tool TodoWrite call_o2faxuaa                                      68µs
    ╰── chat ollama_cloud/glm-5.3-flash                                           8.0s
        ╰── POST /v1/chat/completions [inference-gateway]                         8.0s
            ╰── POST /proxy/ollama_cloud/chat/completions [inference-gateway]     8.0s [error: *errors.errorString]
                ╰── POST /proxy/:provider/*path [inference-gateway]               8.0s
                    ╰── POST /v1/chat/completions [inference-gateway]             8.0s [error: *errors.errorString]
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 25    │ 4%    │ 2884ms │
    │ Memory    │ 4     │ 0%    │ 279ms  │
    │ Read      │ 4     │ 0%    │ 0ms    │
    │ Grep      │ 3     │ 0%    │ 536ms  │
    │ TodoWrite │ 3     │ 0%    │ 0ms    │
    │ MultiEdit │ 1     │ 0%    │ 0ms    │
    │ Edit      │ 1     │ 0%    │ 0ms    │
    │ Write     │ 1     │ 0%    │ 1ms    │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 2896682 │ 0      │ 13727      │ 2910409 │ -    │
    ╰────────────────────────────┴─────────┴────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  6. moved this from Todo to In progress in 2026on Aug 29, 2026
  7. moved this from In progress to QA in 2026on Aug 29, 2026
  8. moved this from QA to Done in 2026on Aug 29, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions