Skip to content

preAction lets tool calls with no episode skip approval #2881

Open

Description

@AbirAbbas

preAction allows a tool call when the episode is nil, so anything that runs tools without an episode skips the approval hooks entirely.

This came up reviewing #2815: a script could run a saved program whose tool calls carry no episode, and none of them asked. #2815 isn't merged, but the fail-open is in dev today, and any future path that executes tools outside a normal turn inherits it.

Suggested shape: treat a nil episode as "ask" (or refuse) for anything that isn't on the read-only allowlist, and add a test that runs a write/bash tool with no episode and expects the approval path.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions