Conversation
React + xterm.js architecture with layered terminal/UI overlay, IPC bridge, message store, diff panel, and keybinding system. Logo-on-idle pattern with fade-out on interaction, textarea prompt that auto-resizes and scrolls beyond 5 rows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scaffold @freecode/tui as a Next.js 15 app with: - React 19, xterm.js, zustand dependencies - Dark theme CSS variables - Root layout with FreeCode metadata - Port 3001 for local dev Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Logo: ASCII FreeCode logo, visible on idle, hidden on first typing - PromptInput: auto-resizing textarea (grows up to 5 rows, then scrolls) - ChatLayout: flex column layout with fixed bottom input - useAutoResize hook: JS fallback for textarea height management Enter submits prompt, Shift+Enter adds newline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- TextPart: renders text with preserved whitespace - CodePart: code block with language label and copy button - ToolPart: tool call display with color-coded headers and result output - UserMessage: user message bubble with avatar - AssistantMessage: assistant message with multi-part rendering - ChatLayout: updated to display messages with auto-scroll to bottom Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Electron wrapper that: - Loads Next.js TUI at localhost:3001 (dev) or bundled file (prod) - Frameless window matching terminal size (120x40) - Waits for TUI server before launching in dev mode - Opens external links in system browser Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
TUI is now a terminal-native app using Ink (React that renders to ANSI): - Logo: ASCII art, shown when idle - PromptInput: keyboard input via Ink's useInput hook - ChatLayout: messages + logo + prompt - Message components: UserMessage, AssistantMessage, TextPart, CodePart, ToolPart - Removed tui-electron (not needed with Ink) - Removed Next.js app/ directory (replaced by src/) Bin: freecode runs via tsx src/index.tsx Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move logoLines and tagline to src/assets/logo.ts for easier updates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…PromptInput with blinking cursor
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
Sign up for freeto 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.