Skip to content

aider: fix inconsistent --type flag and enable task reporting #739

Description

@mafredri

Problem

start.sh has two branches in start_agentapi(): one for when an initial prompt is provided, one for when it isn't. Only the prompt branch passes --type aider to agentapi server. The no-prompt branch omits it, causing agentapi to fall back to generic terminal output parsing.

Separately, report_tasks defaults to false, which means Aider tasks don't get activity-based TTL bumps even though the text-based reporting plumbing exists.

To see the bug: start the module without setting ai_prompt and inspect the agentapi process args. --type aider will be missing.

Desired outcome

  • --type aider is passed to agentapi server regardless of whether an initial prompt is set.
  • report_tasks defaults to true.

Constraints

This ticket does NOT add session resume or enable_state_persistence. Aider's --restore-chat-history flag performs lossy reconstruction from a markdown log, frequently crashes on large histories, and doesn't restore file context. It is the only agent where enable_state_persistence = false is the correct long-term setting. Aider also lacks MCP support (start.sh has a TODO for this).

Version bump

patch

Refs #696

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions