feat(agents): add contextInjection 'never' to disable bootstrap file injection#65006
Conversation
Greptile SummaryThis PR adds Remaining gaps are all P2: the Confidence Score: 5/5Safe to merge; all findings are P2 style/test improvements that don't affect correctness. No P0 or P1 issues found. The schema, types, and both runtime paths are consistent and correct. Remaining comments are about test coverage gaps and a semantic overload of
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05ff1c5819
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
1048fe3 to
cfc5f53
Compare
cfc5f53 to
be12455
Compare
be12455 to
83fed01
Compare
obviyus
left a comment
There was a problem hiding this comment.
Verified the bootstrap config path: agents.defaults.contextInjection: "never" now skips workspace bootstrap injection in normal attempts and compaction without treating it as a continuation turn.
Maintainer follow-up: rebased onto latest main, kept generated runtime config schema aligned, added the active changelog entry, fixed the compact harness mock, and resolved the review-thread concerns.
Local gates: targeted context-injection/schema tests, compact sender-identity test, and pnpm check:base-config-schema.
|
Landed on main. Thanks @xDarkicex. |
…port Two recent code changes lacked or had only partial doc coverage: - contextInjection 'never' (#65006, xDarkicex): the new mode is now documented under agents.defaults.contextInjection, alongside the existing 'continuation-skip' mode, with guidance on when to use it (custom context engines, native runtimes that own their prompt). - Nix Home Manager daemon PATH (#44402, jerome.benoit): document the service PATH auto-discovery (NIX_PROFILES right-to-left precedence and ~/.nix-profile/bin fallback) under the Nix install page. Also sentence-case three Title-Cased headings on the Nix page ('What You Get', 'Quick Start', 'Nix Mode Runtime Behavior') and drop a duplicate body H1 that restated the frontmatter title.
…port Two recent code changes lacked or had only partial doc coverage: - contextInjection 'never' (openclaw#65006, xDarkicex): the new mode is now documented under agents.defaults.contextInjection, alongside the existing 'continuation-skip' mode, with guidance on when to use it (custom context engines, native runtimes that own their prompt). - Nix Home Manager daemon PATH (openclaw#44402, jerome.benoit): document the service PATH auto-discovery (NIX_PROFILES right-to-left precedence and ~/.nix-profile/bin fallback) under the Nix install page. Also sentence-case three Title-Cased headings on the Nix page ('What You Get', 'Quick Start', 'Nix Mode Runtime Behavior') and drop a duplicate body H1 that restated the frontmatter title.
Summary
Change Type
Scope
Linked Issue/PR
Root Cause
N/A - new feature
Regression Test Plan
User-visible / Behavior Changes
Security Impact
Repro + Verification
Environment
Steps
Expected
Bootstrap files not injected when `contextInjection: "never"`
Actual
N/A - new functionality
Evidence
Human Verification
Review Conversations
Compatibility / Migration
Risks and Mitigations
None