Skip to content

docs: fix dead INFER_AGENT_SYSTEM_PROMPT env vars in configuration-reference.md#769

Merged
edenreich merged 3 commits into
mainfrom
fix/766-docs-dead-env-vars
Jul 6, 2026
Merged

docs: fix dead INFER_AGENT_SYSTEM_PROMPT env vars in configuration-reference.md#769
edenreich merged 3 commits into
mainfrom
fix/766-docs-dead-env-vars

Conversation

@inference-gateway-maintainer

@inference-gateway-maintainer inference-gateway-maintainer Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Resolves #766

Summary

Replaces the dead INFER_AGENT_SYSTEM_PROMPT and INFER_AGENT_SYSTEM_PROMPT_PLAN env vars in docs/configuration-reference.md with the correct INFER_PROMPTS_AGENT_SYSTEM_PROMPT and INFER_PROMPTS_AGENT_SYSTEM_PROMPT_PLAN names that have been in use since v0.105.0.

Also adds a warning in cmd/config.go when known-dead env vars are set, so consumers following stale docs get a visible signal instead of silent ignore.

Changes

  1. docs/configuration-reference.md - Replace dead env var names with working ones, add migration note
  2. cmd/config.go - Log warning when known-dead INFER_AGENT_SYSTEM_PROMPT or INFER_AGENT_SYSTEM_PROMPT_PLAN is set

@edenreich

Copy link
Copy Markdown
Contributor

@infer Can you fix the CI ?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/deepseek-v4-flash · View Job

Todos

  • Fix lint error in cmd/config.go: logger.Warn uses format specifier %s instead of structured key-value logging
  • Run lint to verify the fix
  • Commit and push the fix

Pull Request

#769

✅ Infer Result: Success

Fixed the CI lint failure by removing the %s format specifier from the logger.Warn call in cmd/config.go (line 561), changing it to use the project's structured key-value logging pattern ("var", name) instead of a printf-style format string. The fix was committed as ecf2ea4 and pushed to the PR branch.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 4m 10s

Tokens: 1,517,640 in · 3,930 out · 1,521,570 total (27 requests)

Tool calls: 32 total · 84% success rate

⚠️ 5 failed tool call(s)
  • Bash: exit status 1: failed to get job: HTTP 404: Not Found (https://api.github.com/repos/inference-gateway/cli/actions/jobs/lint)
  • Bash: exit status 201: �[32mtask: [lint] golangci-lint run
    �[0m"golangci-lint": executable file not found in $PATH
    ::error title=Task 'lint' failed::exit status 127
    �[31mtask: Failed to run task "lint": exit status 127
    �[0m
  • Bash: exit status 1: # command-line-arguments
    vet: cmd/config.go:113:7: undefined: V
  • Bash: exit status 1: go: github.com/golangci/golangci-lint/cmd/golangci-lint@v2.12.2: github.com/golangci/golangci-lint/cmd/golangci-lint@v2.12.2: invalid version: unknown revision cmd/golangci-lint/v2.12.2
  • Bash: exit status 128: fatal: Unable to create '/home/runner/work/cli/cli/.git/index.lock': File exists.

Another git process seems to be running in this repository, or the lock file may be stale

Triggered by edenreich · Infer Action

@edenreich edenreich marked this pull request as ready for review July 6, 2026 21:22
@edenreich edenreich requested a review from a team as a code owner July 6, 2026 21:22
@edenreich edenreich merged commit b353e6b into main Jul 6, 2026
9 checks passed
@edenreich edenreich deleted the fix/766-docs-dead-env-vars branch July 6, 2026 21:25
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 6, 2026
## [0.134.0](v0.133.1...v0.134.0) (2026-07-06)

### 🚀 Features

* **plugins:** install Claude Code-format plugins and natively inject AGENTS.md ([#770](#770)) ([82c430f](82c430f))

### 📚 Documentation

* fix dead INFER_AGENT_SYSTEM_PROMPT env vars in configuration-reference.md ([#769](#769)) ([b353e6b](b353e6b)), closes [#766](#766)

### 🧹 Maintenance

* **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.26.0 -> v0.27.1 ([#768](#768)) ([0d9980c](0d9980c))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.134.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] configuration-reference.md documents dead INFER_AGENT_SYSTEM_PROMPT env vars

1 participant