Skip to content

Plan progress not visible in CLI console #393

Description

@xinhuagu

Problem

When AceClaw generates and executes a task plan for complex prompts, the plan and its progress are not visible in the CLI console. Users have no feedback that planning is happening.

Root Cause

Two issues in ForegroundOutputSink:

1. onPlanCreated is a no-op

ForegroundOutputSink does not override onPlanCreated. The OutputSink interface default is an empty method, so the generated plan (with its step list) is never printed to the terminal.

2. Plan step progress only appears in the transient status panel

onPlanStepStarted and onPlanStepCompleted delegate to StreamStatusRenderer, which renders using ANSI cursor save/restore (\0337/\0338). Completed entries are pruned after RETAIN_DONE_MS = 2000ms, so steps vanish almost immediately and users rarely see them.

Expected Behavior

Event Expected
stream.plan_created Print the full plan with numbered steps to the console
stream.plan_step_started Print a persistent progress line, e.g. [plan] step 1/3 - "Read existing tests"
stream.plan_step_completed Print a persistent completion line with duration

Suggested Fix

In ForegroundOutputSink:

  • Override onPlanCreated to print the plan summary and step list via out.println()
  • In onPlanStepStarted / onPlanStepCompleted, emit persistent out.println() lines in addition to (or instead of) the transient status panel entries

Relevant files:

  • aceclaw-cli/src/main/java/dev/aceclaw/cli/ForegroundOutputSink.java
  • aceclaw-cli/src/main/java/dev/aceclaw/cli/OutputSink.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions