Add agent hooks for chat gui#1303
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR threads pane and tab context identifiers through the AI chat session and agent infrastructure, extending session start/restore operations with Changes
Sequence DiagramsequenceDiagram
participant UI as ChatInterface Component
participant Router as TRPC Router
participant SessionMgr as SessionManager
participant AgentProvider as ClaudeSdkProvider
participant Agent as Claude Agent
participant Webhook as Notification Webhook
UI->>Router: startSession({sessionId, paneId, tabId, ...})
Router->>SessionMgr: startSession({sessionId, paneId, tabId, ...})
SessionMgr->>AgentProvider: getAgentRegistration({sessionId, paneId, tabId, ...})
AgentProvider->>Agent: Send request with notification({port, paneId, tabId, env})
Agent->>Agent: buildNotificationHooks({notification})
Agent->>Webhook: POST /hook/complete (UserPromptSubmit event)
Webhook-->>Agent: Acknowledgement
Agent-->>AgentProvider: AgentRegistration + session context
AgentProvider-->>SessionMgr: Registration complete
SessionMgr-->>Router: Session started
Router-->>UI: Session ready
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Preview Deployment🔗 Preview Links
Preview updates automatically with new commits |
Description
Related Issues
Type of Change
Testing
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit
Release Notes