Skip to content

Steer/followUp injections break interactive tools (AskUserQuestion), dialog auto-resolves #206

Description

@jschmied

Versions:
planning-with-files 1.1.0, pi-coding-agent 0.80.6, alongside @mazli/pi-ask-user-question 1.3.7. Model: local llama (qwen), so mode resolves to parity.

Repro:
With a root task_plan.md present and no .planning/sessions/ dir (so isSessionAttached() defaults true), have the agent run a trackable tool (read/grep/bash) and then call AskUserQuestion in the same turn. The once-per-leaf recitation queued at runtime.ts:483 with deliverAs: "steer" is delivered while AskUserQuestion is blocked on ctx.ui.custom. The agent consumes the injected planning text as the tool's answer; the dialog is skipped/auto-answered.

Intermittent:
only when a steer is queued before the dialog opens.

Expected:
planning-with-files injections must not interfere with tools that block the turn on interactive UI.

Suggested fix:
suppress the tool_call recitation and agent_end auto-continue for any leaf that invokes an interactive/unrecognized tool; or send the recitation via deliverAs: "nextTurn" instead of "steer".

Workaround: set planningWithFiles.mode: "notify".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions