You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: relay mcp_question from serve-mode jobs back to launching session
Add two-way question relay so when a background job's agent asks a
question via mcp_question, it is detected over SSE, formatted with task
context, and forwarded to the launching session as an interactive picker.
The user can answer inline via mc_answer or attach directly to the job.
- New mc_answer tool for responding to pending questions
- SSE detection of question tool calls (running/completed states)
- Backfill on SSE connect for questions fired before subscription
- Toast notifications for questions, completions, and failures
- Session label lookup before title annotation to show correct name
@@ -152,7 +156,9 @@ export function setupNotifications(options: SetupNotificationsOptions): void {
152
156
constduration=formatElapsed(job.createdAt);
153
157
letmessage='';
154
158
155
-
if(event==='complete'){
159
+
if(event==='question'&&questionData){
160
+
message=buildQuestionRelayMessage(questionData);
161
+
}elseif(event==='complete'){
156
162
message=`🟢 Job '${job.name}' completed in ${duration}. Branch: ${job.branch}. Next: run mc_diff(name: '${job.name}') to review changes, then mc_pr or mc_merge.`;
157
163
}elseif(event==='failed'){
158
164
message=`🔴 Job '${job.name}' failed after ${duration}. Branch: ${job.branch}. Next: run mc_capture(name: '${job.name}') for logs, then mc_attach(name: '${job.name}') to investigate.`;
@@ -166,27 +172,62 @@ export function setupNotifications(options: SetupNotificationsOptions): void {
166
172
message=`👀 Job '${job.name}' needs review (${duration} elapsed). Branch: ${job.branch}.${detail} Next: run mc_diff(name: '${job.name}') and mc_capture(name: '${job.name}') before approving next steps.`;
0 commit comments