fix(engine): keep filter input under env allowlist #28
No reviewers
Labels
No labels
area/engine
clarity/clear
enhancement
security
size/M
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
basepeak-ai/gptscript!28
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/filter-env-allowlist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With
GPTSCRIPT_TOOL_ENV_ALLOWLIST=true, input and output filters lost their payload: the runner hands an output filter{output, continuation, chat}and an input filter{input}, filters declare noParamfor those, and the allowlist only exemptedTOOL_CALL_ARGS/TOOL_CALL_BODY. A filter reading$OUTPUT(e.g. bpai-tools' result-formatter) got an empty string.The exemption is keyed by the call's tool category, so an ordinary tool call still cannot receive these keys as undeclared env, and a filter call still cannot pass any other undeclared key.
newCommand/runHTTPpassctx.ToolCategory; daemons useNoCategory.85ccd1e20795597ac18e