feat(assistant): Home画面にアシスタントチャット機能を追加 (#649)#655
Merged
Conversation
Issue #649: Add global assistant chat panel with CLI tool session management. Backend: - Add global session constants (GLOBAL_SESSION_WORKTREE_ID='__global__') - Add global session poller (polling without DB operations) - Add context builder for initial session context with repository info - Add API routes: start, terminal, current-output, session (DELETE) - Add cleanupGlobalSessions() to session-cleanup for orphan cleanup - Add __global__ early return in worktree-status-helper - Add assistant-api client module Frontend: - Add AssistantMessageInput (simplified, no slash commands/image) - Add AssistantChatPanel (collapsible, repo/tool selection, output display) - Integrate AssistantChatPanel into Home page above Session Overview Tests: - global-session-poller: polling lifecycle, start/stop, max retries - session-cleanup-global: cleanupGlobalSessions function - assistant-context-builder: buildGlobalContext, getEnabledRepositories - All 334 test files pass (6319 tests), 0 lint/type errors Resolves #649 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ptance) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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 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.
Summary
mcbd-global-assistant)Closes #649
新規ファイル (14)
src/app/api/assistant/start/route.ts— セッション開始 APIsrc/app/api/assistant/terminal/route.ts— メッセージ送信 APIsrc/app/api/assistant/current-output/route.ts— 出力取得 APIsrc/app/api/assistant/session/route.ts— セッション状態 APIsrc/components/home/AssistantChatPanel.tsx— チャット UI パネルsrc/components/home/AssistantMessageInput.tsx— メッセージ入力src/lib/api/assistant-api.ts— フロント API クライアントsrc/lib/assistant/context-builder.ts— コンテキスト生成src/lib/polling/global-session-poller.ts— セッションポーリングsrc/lib/session/global-session-constants.ts— 定数定義src/types/assistant.ts— 型定義tests/unit/assistant-context-builder.test.tstests/unit/global-session-poller.test.tstests/unit/session-cleanup-global.test.ts変更ファイル (3)
src/app/page.tsx— AssistantChatPanel 組み込みsrc/lib/session-cleanup.ts— グローバルセッションクリーンアップ統合src/lib/session/worktree-status-helper.ts— グローバルセッション除外品質チェック
Test plan
🤖 Generated with Claude Code