Skip to content

fix: align workspace guidance with disabled filesystem tools - #3623

Open
huong8373tt-beep wants to merge 1 commit into
agentscope-ai:mainfrom
huong8373tt-beep:fix/workspace-disabled-filesystem-guidance-3614
Open

huong8373tt-beep wants to merge 1 commit into
agentscope-ai:mainfrom
huong8373tt-beep:fix/workspace-disabled-filesystem-guidance-3614

Conversation

@huong8373tt-beep

Copy link
Copy Markdown

Summary

Fixes #3614.

When disableFilesystemTools() removes filesystem tools, the workspace middleware now receives that configuration and omits prompt guidance that tells the model to use unavailable filesystem tools. It also states explicitly that filesystem tools are disabled.

The change preserves existing guidance whenever filesystem tools remain enabled, including the existing constructor behavior for direct middleware users.

Testing

  • mvn -B -T1 -Dmaven.repo.local=<isolated cache> -pl agentscope-harness -am -Dtest=HarnessAgentTest test
    • 56 tests, 0 failures, 0 errors
  • mvn -B -T1 -Dmaven.repo.local=<isolated cache> -pl agentscope-harness -am spotless:check
  • git diff --check

Disclosure

Slai Agent Runtime assisted with investigation, implementation, and tests. The account owner reviewed and authorized this contribution.

@CLAassistant

CLAassistant commented Oct 17, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jujn jujn added the P2 重要不紧急 label Nov 3, 2026

This branch has not been deployed

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

Labels

P2 重要不紧急

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: disableFilesystemTools() leaves injected prompt guidance referencing the disabled tools

3 participants