Skip to content

feat: add agent template tui flows#2113

Merged
jolestar merged 1 commit into
mainfrom
task/agent-template-tui
Jul 5, 2026
Merged

feat: add agent template tui flows#2113
jolestar merged 1 commit into
mainfrom
task/agent-template-tui

Conversation

@jolestar

@jolestar jolestar commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a /templates TUI entry with catalog/selector support
  • route agent create through template selection first, including remote GitHub template URL input
  • expose minimal install/remove/sync operations for templates in the TUI

Verification

  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo check --all-targets

@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
holon Ready Ready Preview, Comment Jul 5, 2026 2:30pm

@holonbot holonbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holon Review: feat: add agent template tui flows

Conclusion: Solid feature addition that follows existing TUI patterns. Two minor findings — one coupling risk and one dead-code-path nit. No correctness, security, or performance issues.

Findings

[warn] TemplateUrlInput reuses DebugPromptInput key context (src/tui/view_model.rs:185)

TemplateUrlInput is mapped to KeyContext::DebugPromptInput, coupling two semantically unrelated overlays. If debug-prompt keybindings are customized later, template URL input inherits those changes unintentionally. Consider adding a dedicated KeyContext::TemplateUrlInput variant.

[nit] OverlayAccept in Manage mode is a silent no-op (src/tui/input.rs:2383)

Pressing Enter in Manage mode rebuilds the same overlay state without any user-visible effect. Consider adding a status-line message or falling through to the catch-all branch.

Positive notes

  • Clean delegation: create_agentcreate_agent_with_template maintains backward compat.
  • Template catalog overlay follows the established split-pane pattern from skill catalog.
  • SelectForAgentCreate correctly gates on pending_agent_id and provides n to skip.
  • Remove correctly restricted to UserGlobal templates only.

Comment thread src/tui/view_model.rs
OverlayState::ModelPicker { .. } => KeyContext::ModelPicker,
OverlayState::ModelEffortPicker { .. } => KeyContext::ModelEffortPicker,
OverlayState::DebugPromptInput { .. } => KeyContext::DebugPromptInput,
OverlayState::DebugPromptInput { .. } | OverlayState::TemplateUrlInput { .. } => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[warn] TemplateUrlInput is mapped to KeyContext::DebugPromptInput, coupling two semantically unrelated overlays to the same key context. If debug-prompt keybindings are later customized (e.g., adding autocomplete or history navigation), template URL input would inherit those changes unintentionally.

Suggestion: add a dedicated KeyContext::TemplateUrlInput variant so the two overlays can evolve independently.

@holonbot

holonbot Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Holon Run Report

@jolestar
jolestar merged commit e1eae9b into main Jul 5, 2026
5 checks passed
@jolestar
jolestar deleted the task/agent-template-tui branch July 5, 2026 14:41
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.

1 participant