Commit Graph

1372 Commits

Author SHA1 Message Date
Pedram Amini
ca836be798 OAuth enabled but no valid token found. Starting authentication...
Found expired OAuth token, attempting refresh...
Token refresh successful
POST "https://api.anthropic.com/v1/messages": 429 Too Many Requests {"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your account's rate limit. Please try again later."},"request_id":"req_011CWH1uG2HcPbZAxcTH9eWX"}
2025-12-19 18:46:33 -06:00
Pedram Amini
424d68d999 MAESTRO: Complete refactoring audit Task 60 - themes.ts
Audited src/renderer/constants/themes.ts and related theme files:
- Identified getThemeById export never used in renderer (dead code)
- Found isValidThemeId type guard only used in tests
- Discovered critical duplication bug in ThemeProvider.tsx with mismatched
  colors and missing accentForeground property
- Documented ThemeColors name collision and ThemeId/validIds sync risk
- Created Auto Run Docs/Refactor/60.md with 7 prioritized refactoring actions
2025-12-19 18:29:02 -06:00
Pedram Amini
f750a759a8 MAESTRO: Complete refactoring audit Task 59 - shortcuts.ts
Audited src/renderer/constants/shortcuts.ts for dead code, deprecated
patterns, duplication, code smells, and type safety issues.

Key findings:
- shortcutMatcher.ts is entirely dead code in production (3 functions only in tests)
- matchShortcut() duplicates isShortcut() from useKeyboardShortcutHelpers.ts
- Mobile keyboard handler hardcodes shortcuts instead of using shared constants
- keys array allows invalid key names without compile-time checking
2025-12-19 18:25:32 -06:00
Pedram Amini
72af237784 MAESTRO: Complete refactoring audit Task 58 - LayerStackContext.tsx 2025-12-19 18:21:25 -06:00
Pedram Amini
1bec991f6b MAESTRO: Complete refactoring audit Task 54 - renderer/types/index.ts
Audit the renderer type definitions file (554 lines) for refactoring needs.

Key findings:
- 7 dead/unused types identified
- Major duplication: 11 interfaces defined in 2-7 locations each
- UsageStats duplicated 5 times, AgentConfig in 7 locations
- ProcessConfig missing 9 fields vs global.d.ts version
- 2 `any` types in AgentConfigOption weaken type safety
- Session.fileTree uses any[] instead of proper type
- Recommended consolidating to shared/types.ts
2025-12-19 18:08:34 -06:00
Pedram Amini
332aae3233 MAESTRO: Complete refactoring audit Task 53 - slashCommands.ts 2025-12-19 18:04:24 -06:00
Pedram Amini
6177080aa2 MAESTRO: Complete refactoring audit Task 51 - App.tsx
Comprehensive audit of src/renderer/App.tsx identifying:
- God Component: 6,833 lines (22x larger than 300-line guideline)
- 109 useState, 32 useEffect, 44 useCallback hooks
- Deprecated aiLogs property still initialized
- 6 any types, 3 'as any' casts
- 50+ duplicated session update patterns
- 20+ duplicated tab update patterns
- Duplicated system prompt substitution
- Queue processing duplication (~90 lines)
- Overly complex functions (processQueuedItem 230 lines)

See Auto Run Docs/Refactor/51.md for full analysis and recommendations.
2025-12-19 17:58:45 -06:00
Pedram Amini
0c88d4d969 MAESTRO: Complete refactoring audit Task 49 - group-chat-router.ts
Audited src/main/group-chat/group-chat-router.ts (723 lines) for all five
refactoring categories. Key findings:

- Auto-add participant logic duplicated twice (~45 lines each)
- History context building repeated 3 times with different limits
- Custom args parsing regex duplicated with process.ts
- Fallback CWD pattern repeated 7 times across group-chat files
- routeUserMessage (170 lines) and routeModeratorResponse (171 lines)
  are large functions that could be split
- Local SessionInfo interface uses string instead of ToolType

See Auto Run Docs/Refactor/49.md for complete analysis and
7 prioritized refactoring recommendations.
2025-12-19 17:50:13 -06:00
Pedram Amini
326d623f8c MAESTRO: Complete refactoring audit Task 45 - broadcastService.ts 2025-12-19 17:39:08 -06:00
Pedram Amini
19f89ac92e MAESTRO: Complete refactoring audit Task 44 - wsRoute.ts 2025-12-19 17:36:10 -06:00
Pedram Amini
3c432bf9db MAESTRO: Complete refactoring audit Task 40 - cliDetection.ts
Audited src/main/utils/cliDetection.ts for dead code, deprecated
patterns, duplication, code smells, and type safety issues.

Key findings:
- clearCloudflaredCache() only used in tests (dead code in production)
- PATH expansion logic duplicated in 4 locations (~120 lines)
- which/where platform detection pattern duplicated in 5 locations
- clearCloudflaredCache() only clears one of two caches (confusing API)
- Inconsistent path lists between implementations
- Excellent type safety with no issues found

Recommended 6 refactoring actions including creating shared pathUtils.ts
and binaryDetection.ts utilities.
2025-12-19 17:24:24 -06:00
Pedram Amini
69439f9035 MAESTRO: Complete refactoring audit Task 37 - terminalFilter.ts
Audited src/main/utils/terminalFilter.ts for dead code, deprecated patterns,
duplication, code smells, and type safety issues. Key findings:
- isCommandEcho() and extractCommand() are dead code (only used in tests)
- stripAllAnsiCodes() lacks test coverage despite production use
- ANSI stripping duplicated with shared/stringUtils.ts
- Complex regex patterns could benefit from named constants
- Excellent overall type safety with no issues
2025-12-19 17:16:05 -06:00
Pedram Amini
1fd2ad943e MAESTRO: Complete refactoring audit Task 35 - shellDetector.ts 2025-12-19 17:11:15 -06:00
Pedram Amini
da3ec04c19 MAESTRO: Complete refactoring audit Task 33 - execFile.ts
Audited src/main/utils/execFile.ts (safe command execution utility):
- Exemplary 46-line file with comprehensive test coverage
- Found type bug: exitCode declared as number but can be string
- Found logic bug: error.code || 1 fails for exit code 0
- Minor duplication with CLI's batch-processor.ts using execFileSync directly
2025-12-19 17:05:52 -06:00
Pedram Amini
b839f406c7 MAESTRO: Complete refactoring audit Task 30 - claude-session-storage.ts 2025-12-19 16:57:18 -06:00
Pedram Amini
c67318ecc3 MAESTRO: Complete refactoring audit Task 28 - error-patterns.ts
Analyzed src/main/parsers/error-patterns.ts for all 5 refactoring categories.

Key findings:
- registerErrorPatterns/clearPatternRegistry only used in tests (intentional)
- Major duplication: detectErrorFromLine (~80 lines) and detectErrorFromExit
  (~45 lines) duplicated across all 3 parsers
- ~70% of error patterns shared across agent definitions
- Regex patterns /529/i and /429/i too broad (false positive risk)
- Hardcoded errorTypes array duplicates AgentErrorType type
- Unsafe as ToolType cast bypasses type validation

See Auto Run Docs/Refactor/28.md for full analysis and recommendations.
2025-12-19 16:50:44 -06:00
Pedram Amini
bb536de2a7 MAESTRO: Complete refactoring audit Task 21 - playbooks.ts
Audit findings for src/main/ipc/handlers/playbooks.ts:
- Dead code: mainWindow in dependencies never used
- Duplication: playbook read/write logic duplicated with CLI
- Type safety: 7 any types, missing preload.ts type definitions
- Code smells: silent error swallowing in catch block
2025-12-19 16:29:23 -06:00
Pedram Amini
809c6bc1f5 MAESTRO: Complete refactoring audit Task 19 - history.ts
Audited src/main/ipc/handlers/history.ts for refactoring opportunities.
Key findings:
- history:reload handler is no-op kept for API compatibility
- Major duplication with cli/services/storage.ts (6+ reimplemented methods)
- HistoryEntry type defined inline ~3 times in preload.ts
- External change event ignores sessionId, forcing inefficient reloads
- Type mismatch in history:clear handler vs preload.ts signature
2025-12-19 16:20:57 -06:00
Pedram Amini
c46fefba2f MAESTRO: Complete refactoring audit Task 17 - git.ts
Audited src/main/ipc/handlers/git.ts covering:
- Dead code: None found - all 17 handlers actively used
- Deprecated patterns: Runtime require() should be ES import
- Duplication: WorktreeConfig interface in 2 locations
- Code smells: worktreeSetup handler 107 lines, complex log parsing
- Type safety: preload.ts type mismatches (status/diff return types)

Key bug discovered: git:status and git:diff preload types
declare Promise<string> but handlers return { stdout, stderr }
2025-12-19 16:10:59 -06:00
Pedram Amini
6b35fb41c7 MAESTRO: Complete refactoring audit Task 13 - agentSessions.ts
Audited src/main/ipc/handlers/agentSessions.ts (795 lines) for dead code,
deprecated patterns, duplication, code smells, and type safety issues.

Key findings:
- No dead code - all handlers actively used via preload.ts
- Session discovery duplicates logic in storage classes
- Cost calculation duplicated 6+ times across codebase
- GlobalAgentStats interface duplicated in AboutModal.tsx
- 9 empty catch blocks silently swallow errors
- getGlobalStats handler (200+ lines) should be extracted to class
- Excellent type safety - no any types

Recommended 7 refactoring actions with prioritization.
2025-12-19 15:57:47 -06:00
Pedram Amini
cd90e96980 MAESTRO: Complete refactoring audit Task 9 - history-manager.ts
Audited src/main/history-manager.ts for dead code, deprecated patterns,
duplication, code smells, and type safety issues.

Key findings:
- Major duplication with cli/services/storage.ts (6 methods)
- Synchronous file operations could block event loop
- Missing unit tests for critical persistence component
- 2 deprecated methods still used in IPC handlers
2025-12-19 15:45:35 -06:00
Pedram Amini
fc4a221c1b MAESTRO: Complete refactoring audit Task 7 - web-server.ts
Analyzed src/main/web-server.ts and related web-server module files.
Key findings documented in Auto Run Docs/Refactor/7.md:
- 6 type definitions duplicated across 3-4 locations
- 14 callback setter methods with repetitive patterns
- Session enrichment logic duplicated in 4 locations
- Synchronous readFileSync in static routes
- Weak index signature types with [key: string]: unknown
2025-12-19 15:39:08 -06:00
Pedram Amini
31ce2bda71 # CHANGES
- Added chokidar for cross-platform file watching support 🔧
- Upgraded file watcher from native fs to chokidar library 📁
- Enhanced participant color generation with round-based variations 🎨
- Reserved blue color (index 0) exclusively for Moderator role 💙
- Added color palette size constant for better color management 🎯
- Improved color variation logic for overflow participant counts 🌈
- Fixed file watching to handle add/unlink events properly 👁️
- Removed platform-specific file watching limitations for better compatibility 🌍
- Enhanced color assignment to prevent non-moderators using blue 🛡️
- Bumped version from 0.9.1 to 0.10.0 for new features 🚀
2025-12-19 15:18:31 -06:00
Pedram Amini
bc1b7232f1 ## CHANGES
- Group chat participants now spawn as batch processes with full context 🚀
- Added persistent color preferences for participants across chats 🎨
- Participants can jump to specific messages in chat history 🎯
- Group chat shows "agent-working" state when participants process requests ⚙️
- Removed unused GroupChatHistoryDetailModal component for cleaner codebase 🧹
- Enhanced participant response format with action-oriented summaries 📝
- Added session path tracking for consistent participant identification 🔍
- Improved color assignment prioritizing runtime-generated consistent colors 🌈
- Added data attributes to messages for smooth scrolling navigation 
- Participants receive full chat history context when responding 💬
2025-12-19 14:58:39 -06:00
Pedram Amini
ea4e659025 # CHANGES
- Fixed text extraction for non-JSONL output formats in agents 🔧
- Added source tracking for lightbox images (staged vs history) 🖼️
- Improved newline preservation in streaming text responses 📝
- Enhanced group chat history panel with full text display 💬
- Added participant color pills for better visual identification 🎨
- Implemented jump-to-message functionality from history entries 🎯
- Removed redundant detail modal from history panel view 🧹
- Fixed delete permissions based on image source context 🔒
- Improved JSONL detection to avoid parsing plain text 
- Enhanced streaming text concatenation with proper line breaks 📄
2025-12-19 14:34:34 -06:00
Pedram Amini
860d6341be # CHANGES
- Added image duplicate detection for better user experience 🖼️
- Integrated flash notifications across input components seamlessly 🔔
- Enhanced image handling with duplicate prevention in chat inputs 🚫
- Added showFlashNotification callback to multiple UI components 💬
- Improved user feedback when attempting to add duplicate images 
- Extended notification system to GroupChat and MainPanel components 📢
- Added imageArgs to stripped agent function properties list 🔧
- Consistent duplicate image handling across all input areas 🎯
2025-12-19 14:16:22 -06:00
Pedram Amini
f099571e45 # CHANGES
- Added duplicate image detection to prevent adding same images twice 🎯
- Enhanced image staging with automatic duplicate filtering for cleaner uploads 🧹
- Implemented flash notifications to alert users when duplicate images are ignored 
- Improved group chat image handling with smart duplicate prevention logic 💬
- Fixed lightbox delete functionality to only work on staged images, not history 🔒
- Added showFlashNotification prop to InputArea component for better notifications 📢
- Streamlined file upload experience with intelligent duplicate management 📁
- Enhanced user feedback system with timed success notifications (2 seconds) 
- Improved image array management with includes() checks before adding 🔍
- Polished the overall image handling workflow for smoother user experience 
2025-12-19 14:01:07 -06:00
Pedram Amini
f634dc43ef ## CHANGES
- Fixed image attachment support for Codex and OpenCode agents 🖼️
- Added file-based image arguments for non-stream agents 📁
- Implemented temp file creation for image attachments 💾
- Enhanced integration tests with image upload capabilities 🧪
- Improved cleanup of temporary image files on exit 🧹
- Fixed lightbox keyboard navigation after image deletion ⌨️
- Repositioned thinking status dropdown to prevent overflow 📍
- Added proper image argument builders for each agent 🔧
- Streamlined image handling across different agent types 🎯
- Enhanced process manager with multi-image support 🚀
2025-12-19 13:55:07 -06:00
Pedram Amini
55e0ad51e2 I'd be happy to help you create a clean update summary for your GitHub project! However, I don't see any input provided after "INPUT:" in your message.
Could you please share the changelog, commit history, pull request details, or any other information about what has changed in your project since the last release? This could include:

- Git commit messages
- Pull request descriptions
- Release notes draft
- Feature additions
- Bug fixes
- Breaking changes
- Dependencies updates

Once you provide this information, I'll create an exciting CHANGES section with clean 10-word bullets and relevant emojis as requested!
2025-12-19 13:42:48 -06:00
Pedram Amini
fa2dc5d9fb ## CHANGES
- Added comprehensive debug package generation for troubleshooting issues 🔍
- Debug packages safely exclude sensitive data and conversations 🔐
- Implemented markdown reference copying in image lightbox viewer 📝
- Added delete confirmation dialog for image removal safety ⚠️
- Fixed URL encoding for image paths with special characters 🔗
- Enhanced privacy protections with automatic path sanitization 🛡️
- Improved error handling for missing group chat functions 🐛
- Added quick action support via Cmd/Ctrl+K shortcut 
- Expanded modal now maintains independent edit/preview modes 🎯
- Updated troubleshooting section with Discord and GitHub links 💬
2025-12-19 13:12:52 -06:00
Pedram Amini
aa786b2ebf group chat history grooming 2025-12-19 12:58:09 -06:00
Pedram Amini
28bc5bba20 ## CHANGES
- Removed PROJECT_FILES_CONTEXT from wizard system prompt template 🗑️
- Added instruction to examine working directory before responding 🔍
- Simplified discovery approach to look for file patterns directly 📁
- Removed ProjectFileInfo interface and related functionality 🧹
- Cleaned up projectFiles parameter from configuration interfaces 
- Removed buildProjectFilesContext function and file analysis logic 🎯
- Updated system prompt to rely on direct file examination 👀
- Streamlined template variable replacement in prompt generation 🚀
- Maintained existing docs functionality for session continuity 📝
- Improved clarity of file-based project type detection approach 💡
2025-12-19 11:02:34 -06:00
Pedram Amini
7c6e042f42 # CHANGES
- Fixed LayerStack integration for AutoRun tests to prevent modal priority conflicts 🎯
- Added custom shell configuration with path override, arguments, and environment variables 🐚
- Implemented per-session model configuration that overrides global agent settings 🤖
- Enhanced Wizard with project file context for better existing project detection 📁
- Fixed group chat storage to respect custom sync paths and demo mode properly 💾
- Improved shell detection UI to handle unavailable shells with custom path option 🔍
- Added environment variable editor with stable key editing for shell sessions 🔧
- Fixed AutoRun lightbox image path handling for relative attachment URLs 🖼️
- Added auth token recovery flow for leaderboard registration edge cases 🏆
- Migrated legacy terminal sessions to use claude-code agent automatically ♻️
2025-12-19 10:40:31 -06:00
Pedram Amini
460b578637 BACK FROM THE DEAD 2025-12-19 08:27:31 -06:00
Pedram Amini
815718a016 OUT OF TOKENS, SWITCHING TO CODEX 2025-12-19 02:31:57 -06:00
Pedram Amini
be21aa0915 CMON BABY 2025-12-19 02:20:33 -06:00
Pedram Amini
f243afccfe WILL HE EVER GET TO SLEEP 2025-12-19 02:06:01 -06:00
Pedram Amini
512644c0ad COME ON SWEET BABY JESUS 2025-12-19 01:52:43 -06:00
Pedram Amini
3904807210 OH LAAAWD WE CLOSE 2025-12-19 01:43:00 -06:00
Pedram Amini
d9806e4eee WIP 2025-12-19 01:30:58 -06:00
Pedram Amini
138b2b6049 WIP 2025-12-19 01:20:47 -06:00
Pedram Amini
09359cf587 WIP 2025-12-19 01:17:51 -06:00
Pedram Amini
8f9b77e4ce test fixes 2025-12-19 01:08:00 -06:00
Pedram Amini
6fbc7cfe58 WIP 2025-12-19 00:55:25 -06:00
Pedram Amini
b3042265d4 WIP 2025-12-19 00:51:19 -06:00
Pedram Amini
8383b8b674 I'm ready to analyze your GitHub project changes! Please provide me with the input containing the commits, pull requests, or changelog information since the last release. This could be:
- Git commit history
- Pull request descriptions
- A diff between releases
- Release notes draft
- Or any other format showing what changed

Once you share the changes, I'll create an exciting CHANGES section with clean, 10-word bullets highlighting the major updates and improvements! 🚀
2025-12-19 00:33:39 -06:00
Pedram Amini
fbe47df946 ## CHANGES
- Added hyphenated name support for @mentions everywhere 🚀
- Participants now get unique colors for better visibility 🎨
- Real-time message display without waiting for responses 
- Track participant stats: messages, tokens, processing time 📊
- Auto-add participants when mentioned by users or moderator 🤖
- Show participant stats in collapsed and expanded views 📈
- Add "Beta" badge to group chat UI elements 🏷️
- Normalize spaces to hyphens for consistent @mentions 🔧
- Display processing time in human-readable format ⏱️
- Add colored left border to participant cards 🌈
2025-12-19 00:33:19 -06:00
Pedram Amini
9ea5d30f5c ## CHANGES
- Fixed keyboard navigation conflicts in group chat mentions 🎯
- Added event propagation stops for smoother interactions 
- Replaced native datalist with custom model dropdown 🎨
- Created dedicated ModelTextInput component for cleaner code 🧹
- Added visual dropdown toggle with chevron icon 🔽
- Implemented smart filtering for available model selection 🔍
- Fixed click-outside behavior for dropdown dismissal 🖱️
- Enhanced model selection with hover and active states 
- Removed problematic autofill CSS overrides for stability 🛡️
- Improved accessibility with proper focus management 🎯
2025-12-19 00:15:42 -06:00
Pedram Amini
209cbe0a33 I'd be happy to help you create a clean update summary for your GitHub project! However, I don't see any input provided after "INPUT:" in your message.
Could you please share:
- The changelog, commit history, or release notes
- A diff of changes between releases
- Or any other information about what has changed in your project since the last release

Once you provide that information, I'll create an exciting CHANGES section with clean 10-word bullets and relevant emojis, formatted exactly as you've specified.
2025-12-19 00:02:48 -06:00
Pedram Amini
1ddcd326b4 OAuth enabled but no valid token found. Starting authentication...
Found expired OAuth token, attempting refresh...
Token refresh successful
## CHANGES

- Added per-session agent configuration overrides for custom paths, args, and env vars 🔧
- Updated NewInstanceModal to pass custom config to onCreate callback 🎨
- Enhanced EditAgentModal to save per-session configuration settings ✏️
- Removed global new group chat keyboard shortcut from shortcuts system ⌨️
- Added Beta badges for Codex and OpenCode agents instead of New 🏷️
- Integrated enterToSendAI setting with GroupChatInput component behavior 💬
- Fixed test expectations to include new onCreate parameter signatures 
- Added sync API handlers for storage path management in test setup 📁
- Updated process handlers to support session-level config overrides 🚀
- Improved batch processor history entry creation with async handling 
2025-12-18 23:38:56 -06:00