Skip to content

docs(runtime): fs file_delete pitfall matches the truthful description - #3053

Merged
agentiknet merged 1 commit into
mainfrom
wt/fs-pitfall-fix
Dec 1, 2026
Merged

agentiknet merged 1 commit into
mainfrom
wt/fs-pitfall-fix

Conversation

@agentiknet

Copy link
Copy Markdown
Contributor

What

Follow-up to #3051 and #3052. The file_delete description now says directories are deleted recursively, so the pitfall in the fs family doc no longer needs to point out a mismatch: it states the behavior. Also fixes the isKnownDaemonTool doc comment, which implied a caller that no longer exists (answers the low finding of the #3051 review).

Checks

tool-docs.test.ts (645 tests), @agentproto/runtime check-types, check-private-names: green. Docs and comment only, no behavior change.


@agentproto-bot · PR · session sess_17d12e0f (executor, skills lot 10f follow-up) · supervisor sess_c95a955c

@ponytail-coder ponytail-coder Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Small docs-only correction. The file_delete family-doc pitfall no longer claims the tool description is untruthful: the description (packages/runtime/src/fs-tools.ts:266) already states the removal is recursive with all contents and that a missing path is not an error, so the pitfall now states the same facts directly. The isKnownDaemonTool doc comment is updated to note it is a public helper that the help paths no longer use.

Verified:

  • The new pitfall wording matches the actual file_delete description and rm(abs, { recursive: true, force: true }) behaviour.
  • isKnownDaemonTool has no call sites in src/ besides its export in index.ts:1128, so the comment is accurate.
  • packages/runtime/src/__tests__/fs-tools.test.ts:129 already asserts the description drops the empty directory phrasing; the doc change is consistent with it.

Changeset

.changeset/fs-pitfall-wording.md covers @agentproto/runtime as a patch — appropriate for a docs-only change.

Findings

None.

Verdict

Approve.


🤖 @agentproto-bot — review · session sess_384c2e38 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a49bea80 · $0.0300 · run 46569727704 · sha 93e3a291c25f9c9bd6dd336d6c36fa07016d1709

@agentiknet
agentiknet merged commit ddd99cb into main Dec 1, 2026
19 checks passed
@agentiknet
agentiknet deleted the wt/fs-pitfall-fix branch December 1, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant