Skip to content

feat: TUI enhancements - editor, markdown, tool styling#307

Merged
dwash96 merged 4 commits intocecli-dev:mainfrom
1broseidon:tui-features
Dec 24, 2025
Merged

feat: TUI enhancements - editor, markdown, tool styling#307
dwash96 merged 4 commits intocecli-dev:mainfrom
1broseidon:tui-features

Conversation

@1broseidon
Copy link
Copy Markdown

Summary

  • Editor Integration: /editor and ctrl+o shortcut properly suspend TUI when launching external editor
  • Markdown Rendering: Optional markdown rendering for LLM responses via tui-config.other.render_markdown
  • Tool Call Styling: Themed formatting for tool calls (Tool Call · server · function with connector)

Configuration

tui-config:
  key_bindings:
    editor: "ctrl+o"
  other:
    render_markdown: false

…g.key_binding.editor configurability, with ctrl+o as default.
- Add render_markdown option in tui-config.other (default: false)
- Support markdown rendering in both streaming and non-streaming modes
- Override assistant_output in TUI IO to route through streaming path
- Fix bug in _stop_stream (self.rstrip -> self._line_buffer.rstrip)

Configure via tui-config YAML:
  tui-config:
    other:
      render_markdown: true
- Buffer tool call messages and render with themed styling
- Format: "Tool Call · server · function" with accent color
- Arguments shown with "⎿" connector prefix
- Tool results displayed separately with dim styling
- Integrates with existing TUI theme system (#00ff87 accent)
- Use run_obstructive to properly suspend TUI when running interactive commands
- Notify user before suspension with "Suspending TUI for interactive command"
- Prevents TUI elements from interfering with PTY-based commands
@1broseidon
Copy link
Copy Markdown
Author

Quick update:

fix: suspend TUI for interactive commands

  • Use run_obstructive to properly suspend TUI when running interactive commands
  • Notify user before suspension with "Suspending TUI for interactive command"
  • Prevents TUI elements from interfering with PTY-based commands

@dwash96 dwash96 merged commit 610f7f1 into cecli-dev:main Dec 24, 2025
@dwash96 dwash96 mentioned this pull request Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants