Repository navigation
Profile patch targeting a disabled row is a silent no-op (tool read/grep caps unreachable) #4980
Unanswered
phoenix13023
asked this question in
Q&A
Replies: 1 comment
关于「Profile patch targeting a disabled row is a silent no-op (tool read/grep caps unreachable)」建议先固定这三样再深挖:
WSL 跨 Windows 的路径/代理/剪贴板问题可参考:dsh-wsl-kit。 若你补充版本 + 完整报错/Trajectory 片段,可以再往下收窄。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Labels:
bugconfigdeveloper-experienceSummary
docs/user/develop/basic/publish.md:125tells users a patch "can override rows fromearlier layers by
id". Fortool-fs/tool-fs-searchthat advice cannot work in theWeb composition, and it fails without an error or a warning: the agent keeps the old
behaviour and the user believes they configured something.
Why the override cannot land
packages/bundle/web-app/cordis.patch.yml:332-336disables the host rows:packages/preset/agent-presets/presets/standard/agent.cordis.yml:56-62— and patchesnever cross an include boundary (stated explicitly in
packages/boot/app-boot/tests/config-reload.spec.ts:346-348).- id: tool-fs config:matches only the already-disabled host row.Nothing is configured; nothing reports it.
Reproduction
standardpreset. Add to~/.dsh/profiles/web/cordis.patch.yml:dsh web.reada file containing a single line longer than 2000 chars.Actual: output still ends with
... (line truncated to 2000 chars).Expected: either the new cap is applied, or boot refuses/warns that the targeted row
is disabled by a later layer.
Note
renderConfigDumpalready warns for patches that match no row(
packages/boot/app-boot/src/index.ts:382-386); matching a disabled row produces nosignal at all, which is the gap.
Suggested fix (either, or both)
composition, or is shadowed across an include boundary — same treatment as
"matched no row".
readMaxLineLength,grepMaxLineBytes,readLimit, …) to a host-plane settings namespace so a deploymentcan set them without editing shipped preset files. Today the only effective place is a
per-preset
agent.cordis.yml, duplicated acrossstandard/ptc/cordis, which auser must discover from source.
Impact
Any user who reads the documented override advice and tries to tune tool behaviour gets a
silent no-op. This is the second-most-damaging failure class after a crash, because the
configuration looks applied.
All reactions