Skip to content

Conversation

@brandonkachen
Copy link
Collaborator

No description provided.

@brandonkachen brandonkachen force-pushed the brandon/tui branch 4 times, most recently from 5a347f3 to 870113d Compare October 14, 2025 00:14
brandonkachen and others added 24 commits October 14, 2025 10:48
Implement stateful XML parser to remove <codebuff_tool_call> tags from handleStreamChunk output while preserving text before/after tool calls and handling tags split across chunk boundaries.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
…line editing in the CLI chat. Improves user experience with proper newline handling, cursor navigation, and line wrapping.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff Co-Authored-By: Codebuff
<[email protected]>
…y renderer and update dependencies

This replaces the old markdown renderer (marked/marked-terminal) with a remark/unified-based pipeline. It updates CLI dependencies (remark-parse/unified) and adjusts dev workflow to Bun-based watch mode.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
…e unused clamp helper. Standardize deletion/navigation shortcuts across macOS/Windows to improve reliability and consistency.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
…pport; align build process to ensure reliable color rendering in macOS terminals.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Updates OpenTUI submodule to include:
- RGB to 8-bit ANSI color conversion for terminals without RGB support
- Fixed macOS Terminal color rendering (RGB -> 256-color fallback)
- Improved build process with automatic binary copying
- Documentation for troubleshooting color issues

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Adds support for running the CLI chat app with a prompt argument that auto-executes and displays debug logs.

Changes:
- cli/src/index.tsx: Parse -p argument and pass initialPrompt to App
- cli/src/chat.tsx: Auto-submit prompt on mount, wait for completion, display debug log, then exit
- cli/src/chat.tsx: Log subagent chunks via handleEvent callback
- cli/src/chat.tsx: Track subagent lifecycle with activeSubagentsRef
- cli/src/chat.tsx: Conditionally log chunks in handleStreamChunk when subagents are active
- sdk/src/run.ts: Simplify onSubagentResponseChunk to only call callbacks (remove file logging)
- sdk/src/run-state.ts: Remove unused subagents field from RunState type
- sdk/README.md: Remove documentation about codebuff-events.log

Usage: bun run cli/src/index.tsx -p "your prompt here"

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Updates OpenTUI submodule to include fix for cross-runtime compatibility by replacing Bun.stripANSI with custom implementation.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
- Detect Zed IDE via ZED_TERM environment variable
- Implement ZedScrollAccel with 0.15x base multiplier and velocity-based boost
- Refactor useScrollManagement to useChatScrollbox hook
- Add smooth animated scrolling with easeOutCubic easing
- Consolidate Zed detection and scroll configuration in hook
- Scroll acceleration: 0.15x base, up to 1.9x for sustained fast scrolling

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
brandonkachen and others added 9 commits October 15, 2025 00:32
Thoughtfully merged changes in backend/src/run-programmatic-step.ts:
- From origin/main: HandleStepsLogChunkFn, handleStepsLogChunk, sendSubagentChunk, fromHandleSteps param
- From brandon/tui: parentAgentId wrapping logic for nested agent events
- Combined both sets of changes for full functionality

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
- Add immer middleware to reduce boilerplate in setters
- Use useShallow for efficient multi-value selection in chat.tsx
- Remove unused chatStore non-hook wrapper export
- Move slashSelectedIndex and agentSelectedIndex to store

Benefits:
- Cleaner setter syntax with direct state mutations
- Single useChatStore call with useShallow instead of multiple calls
- Reduced boilerplate while maintaining type safety

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff Co-Authored-By: Codebuff
<[email protected]>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
🤖 Generated with Codebuff Co-Authored-By: Codebuff
<[email protected]>
brandonkachen and others added 16 commits October 15, 2025 14:12
Reduce noisy backend logs while keeping the actual subagent_start event emission intact to avoid clutter in development and CI logs.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <[email protected]>
Replace direct WebSocket usage in tool handlers and programmatic steps
with `sendSubagentChunk` callback function. This improves testability
and separates transport concerns from business logic.

🤖 Generated with Codebuff Co-Authored-By: Codebuff
<[email protected]>
Move findGitRoot function from logger.ts to new git.ts utility file for better code organization. Update imports in logger.ts and codebuff-client.ts accordingly.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
Prevents committing local test fixture data from npm-app tests and reduces noisy diffs. Only .gitignore is updated.\n\n🤖 Generated with Codebuff\nCo-Authored-By: Codebuff <[email protected]>
Updated version number and added new feature details.
Replace nested if-else chains with cleaner switch statement when adding
parentAgentId to nested agent events for proper UI nesting.

🤖 Generated with Codebuff Co-Authored-By: Codebuff
<[email protected]>
…nstall

Move CLI-specific symlink setup into the CLI workspace and update the root postinstall and docs so callers use the new location.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
# Conflicts:
#	backend/src/run-programmatic-step.ts
@brandonkachen brandonkachen merged commit 9026052 into main Oct 15, 2025
14 checks passed
@brandonkachen brandonkachen deleted the brandon/tui branch October 15, 2025 23:50
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