-
Notifications
You must be signed in to change notification settings - Fork 323
[feat] initial cli app with proper tui
#339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5a347f3 to
870113d
Compare
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]>
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]>
64bd8ee to
c097601
Compare
🤖 Generated with Codebuff Co-Authored-By: Codebuff <[email protected]>
c097601 to
4457528
Compare
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.
This reverts commit c710a2d.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.