8000 `min task run`: keep the approved task environment when saving the policy fails · Issue #4058 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

min task run: keep the approved task environment when saving the policy fails #4058

Backlog

Description

@evanspearman

Found in review of #4009 (comment), at crates/minimal/src/task.rs:1165. Unresolved when this issue was filed.

Keep the approved task environment when saving it fails.
If the user approves an environment variable and the policy write returns WriteError::Failed, this call returns before gate_task_env hands back the resolved environment and amended policy. Previously, run_entry used both and continued after reporting the save failure. Keep the report deferred until the command completes so the current approval still applies. If the task succeeds, report the write failure at that point.

Activity

  1. added
    bug
    on Dec 4, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0