Skip to content

High CPU usage #403

@utsahi

Description

@utsahi

Checklist

  • I agree to communicate with the author myself (not AI-generated).
  • I've read the README's Filing issues section.
  • I'm running the latest versions (fill in below).
    • agent-shell: 0.46.1
    • acp.el:
    • ACP package (e.g. claude-code-acp):
    • Agent CLI (e.g. claude, gemini):
  • For requesting new agent support, I'm including a link to the ACP-capable agent or related ACP package.
  • For issues, I'm including ACP traffic (as per README).

Repro step: enter the following prompt: "emit 10 markdown tables with 10 rows and 10 columns each"

Observed behavior

I narrowed it down to markdown-overlays-put. As each row of the table is streamed, it looks like the overlay is being recalculated from the beginning of the current item.

Image

Suggestion

  1. Consider calculating the overlay after the entire item has been streamed.
  2. Or provide a built in option to disable overlays and an option to recalculate the overlays

Workaround

To unblock myself, I worked around by evaling (defun markdown-overlays-put ())

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