Skip to content

[ENHANCEMENT] Tighten Task.ask sequencing for auto-approved read-only asks #105

Description

@roomote

Problem (one or two sentences)

Task.ask inserts a visible ask row before synchronous read-only auto-approval resolves it. That sequencing allows auto-approved read_file asks to briefly appear as actionable approval state.

Context (who is affected and when)

This affects users with read-only auto-approve enabled, especially during fast repo exploration. It is the root-cause backend slice for issue #102.

Desired behavior (conceptual, not technical)

If a read-only tool ask will be auto-approved immediately, the task flow should not surface it as a visible actionable approval state first.

Constraints / preferences (optional)

Keep this change narrow to synchronous auto-approved read-only tool asks. Do not turn it into a broad refactor of all approval flows.

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Zoo Code Task Links (optional)

Acceptance criteria (optional)

Proposed approach (optional)

Tighten the sequencing in Task.ask for the synchronous read-only auto-approve path so the ask is not exposed to the UI as an unresolved actionable approval state before auto-approval lands.

Trade-offs / risks (optional)

This touches shared approval sequencing, so the main risk is unintended behavior changes for other ask types. Keep the scope tight and verify only the targeted path plus nearby approval behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions