Q1: keep other work's chat mentions out of task prompts

Every mention already wakes the agent through its own chat-wake task, so
ordinary tasks no longer inject the org-wide mention inbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 02:19:48 -04:00
1 parent b07eedbaa7
commit 77505aab8d
3 files changed
+72 -37

No files matched your search

-14
View File
@@ -150,10 +150,6 @@ function roleVoice(input: AgentInstructionContext): string {
return "You own your craft. Ask the question early instead of guessing, do the work properly, and when you are stuck for more than a few minutes say so in the thread instead of spinning in place.";
}
export interface InboxContextBlock {
transcript: string;
}
export function buildTaskPrompt(input: {
task: TaskExecutionTaskRow;
agent: TaskExecutionAgentRow;
@@ -167,7 +163,6 @@ export function buildTaskPrompt(input: {
hasReports: boolean;
managerName: string | null;
chatContext: ChatContextBlock | null;
inboxContext: InboxContextBlock | null;
/** Completed runs this task already spent without reaching done. */
priorCompletedRuns: number;
}): string {
@@ -220,15 +215,6 @@ export function buildTaskPrompt(input: {
);
return lines.join("\n");
}
if (input.inboxContext) {
lines.push(
"",
"Recent messages that mention you:",
input.inboxContext.transcript,
"",
"Respond to anyone above who needs your input before starting the task.",
);
}
if (input.task.requires_filesystem === 1 && input.workspace) {
lines.push(
"",