You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** An empty or invalid value disables the post-edit command (the safe default). */functionparsePostEditCommand(value: unknown){if(!isRecord(value))return"";returntypeofvalue.command==="string"
? value.command.trim().slice(0,POST_EDIT_COMMAND_MAX_CHARS)
: "";}
POST_EDIT_COMMAND_MAX_CHARS 为 500。实现与注释“invalid value disables”不一致:超长值没有 fail closed,而是被改写为另一条 shell 命令。
Activity
fix(setup): reject oversized post-edit commands
fix(setup): reject oversized post-edit commands
fix(setup): reject oversized post-edit commands (openpi-dev#203)
fix(setup): reject oversized post-edit commands (openpi-dev#203)