Skip to content

TAB doesn't work on gptel code blocks in markdown mode while a tool request confirmation is pending #1457

Description

@darkfeline

Please update gptel first -- errors are often fixed by the time they're reported.

  • I have updated gptel to the latest commit and tested that the issue still exists

Bug Description

(This is on gptel-0.9.9.5.0.20260529.26 though I'd hazard a guess it's not fixed yet since it's existed for a long time, I've just not narrowed it down until now).

The keymap that makes TAB fold/unfold gptel code blocks (in markdown buffers, haven't tried org) doesn't work while a tool call request is pending approval/rejection.

This is annoying if I want to go expand a previous code block to reference before responding to the pending tool call request.

Edit: This is almost certainly because the gptel-tool-call-actions-map keymap overlay overrides it.

Backend

None

Steps to Reproduce

  1. Run gptel-agent (for default tools).
  2. Run a complex request with tools/reasoning on.
  3. Try expanding the reasoning code block or completed tool call code block with TAB while a tool call request is pending. (doesn't work)
  4. Try again without a tool call request pending (should work)

Additional Context

gptel-0.9.9.5.0.20260529.26 (I'll try to repro on latest later, but I'm fairly sure this still exists)

Backtrace

Log Information

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