Skip to content

refactor: remove built-in chat TUI in favor of external clients - #88

Merged
pavelanni merged 1 commit into
mainfrom
refactor/remove-chat-tui
Jun 3, 2026
Merged

pavelanni merged 1 commit into
mainfrom
refactor/remove-chat-tui

Conversation

@pavelanni

@pavelanni pavelanni commented Jun 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Remove the built-in Bubble Tea chat TUI (internal/chat/, docsclaw chat command)
  • Remove 3 dependencies: bubbletea, glamour, lipgloss
  • Update README with recommended chat clients (Open WebUI, Chatbox, oterm, aichat)
  • Update architecture diagram to show both A2A and OpenAI-compatible endpoints

Rationale

DocsClaw runs on Kubernetes — users access it remotely, not from a
terminal on the pod. The /v1/chat/completions endpoint already
supports any OpenAI-compatible chat client, making the built-in TUI
redundant.

Removed: 617 lines of code, 3 direct dependencies.

Kept: bridge/client.go (A2A client) — still used by the batch
command.

Test plan

  • make build succeeds
  • go mod tidy removes bubbletea/glamour/lipgloss cleanly
  • No remaining imports of internal/chat

Closes #15, closes #63

Summary by CodeRabbit

  • Removed Features

    • Removed the interactive chat command and related functionality.
  • New Features

    • Added OpenAI-compatible /v1/chat/completions endpoint accessible at http://<agent-host>:8000/v1.
  • Documentation

    • Updated quick start guide with endpoint usage examples and client configuration.
    • Revised architecture diagram to reflect new request flow through the OpenAI-compatible interface.
  • Chores

    • Updated project dependencies.

DocsClaw runs on Kubernetes where users access it remotely. The
built-in Bubble Tea chat TUI required terminal access to the pod,
which doesn't fit that deployment model.

The OpenAI-compatible /v1/chat/completions endpoint already supports
any standard chat client (Open WebUI, Chatbox, oterm, aichat).

- Remove internal/chat/ package (model, styles, messages)
- Remove internal/cmd/chat.go (cobra command)
- Remove bubbletea, glamour, lipgloss dependencies from go.mod
- Update README with recommended external chat clients
- Update architecture diagram to show both A2A and OpenAI endpoints

Closes #15, closes #63

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 6e150c84-daf1-4ea9-a153-6daded0547b0

📥 Commits

Reviewing files that changed from the base of the PR and between 83c7ffa and 46304cd.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (7)
  • CLAUDE.md
  • README.md
  • go.mod
  • internal/chat/messages.go
  • internal/chat/model.go
  • internal/chat/styles.go
  • internal/cmd/chat.go

Cache: Disabled due to data retention organization setting

Knowledge base: Disabled due to data retention organization setting


📝 Walkthrough

Walkthrough

This PR removes the Bubble Tea–based interactive docsclaw chat command and its supporting chat model implementation, replacing the feature with documentation for an OpenAI-compatible /v1/chat/completions HTTP endpoint. Documentation and dependencies are updated to reflect the removal.

Changes

Interactive Chat TUI Removal and Endpoint Migration

Layer / File(s) Summary
Documentation and architecture updates
CLAUDE.md, README.md
Project structure docs updated to show internal/cmd/batch instead of chat and removal of internal/chat/ package. Quick Start documentation replaced with OpenAI-compatible endpoint guidance including client app examples and base URL/API key instructions. Architecture diagram redrawn to show request flow through /v1/chat/completions interface to LLM provider with explicit tool set.
TUI dependency cleanup
go.mod
Removed charm.land/bubbles/v2, charm.land/bubbletea/v2, charm.land/glamour/v2, and charm.land/lipgloss/v2 from require block. Updated indirect dependency entries to remove TUI-related transitive dependencies and add new baseline packages for the endpoint-based approach.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Possibly related PRs

  • redhat-et/docsclaw#16: This PR adds the original Bubble Tea–based docsclaw chat command and internal/chat/ package components that are now being removed in this PR.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/remove-chat-tui

Comment @coderabbitai help to get the list of available commands and usage tips.

@pavelanni
pavelanni merged commit 4dbefe3 into main Jun 3, 2026
4 checks passed
@pavelanni
pavelanni deleted the refactor/remove-chat-tui branch June 3, 2026 22:39
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.

Add slash commands to chat TUI (/exit, /quit, /help, /clear) Chat client: fix scrolling behavior when typing after scroll-up

1 participant