fix: remove avoidable model runtime limits

Preserve long histories and parsed attachments, expose paged process and Subagent output, isolate MCP discovery failures, and expand browser snapshots and knowledge result selection. Remove fixed Harness output and updated remote Runtime duration limits.

Keep released Agent profile and v1 bridge compatibility while enabling larger framed exchanges and optional limits for updated peers. Document remote coverage requirements and real-model boundary validation.

Release note: Long model tasks can retain more context and continue reading complete tool output; remote execution preserves compatibility with released Agents. Updated remote limits require an updated Agent and Runtime bundle.
This commit is contained in:
mesalogo
2026-09-10 03:01:21 +08:00
parent 80b0b18712
commit b01a856bae
62 changed files with 1285 additions and 465 deletions
+3 -21
View File
@@ -2,9 +2,7 @@ import { z } from 'zod'
import {
assistantIdSchema,
conversationContextCompressionStateSchema,
conversationHistoryMessageSchema,
maximumConversationHistoryCharacters,
maximumConversationHistoryMessages
conversationHistoryMessageSchema
} from './assistant-contracts'
import { agentRuntimeSelectionSchema } from './runtime-selection-contracts'
@@ -466,12 +464,8 @@ export const runtimeConversationCompactInputSchema = z
conversationId: assistantIdSchema,
projectId: assistantIdSchema.optional(),
runtimeSelection: agentRuntimeSelectionSchema,
history: z
.array(conversationHistoryMessageSchema)
.max(maximumConversationHistoryMessages),
historyMessageIds: z
.array(assistantIdSchema)
.max(maximumConversationHistoryMessages),
history: z.array(conversationHistoryMessageSchema),
historyMessageIds: z.array(assistantIdSchema),
contextCompressionState:
conversationContextCompressionStateSchema.optional()
})
@@ -496,18 +490,6 @@ export const runtimeConversationCompactInputSchema = z
message: '会话历史消息 ID 不得重复'
})
}
if (
request.history.reduce(
(total, message) => total + message.content.length,
0
) > maximumConversationHistoryCharacters
) {
context.addIssue({
code: 'custom',
path: ['history'],
message: `会话历史总长度不能超过 ${maximumConversationHistoryCharacters.toLocaleString()} 个字符`
})
}
})
export type RuntimeConversationCompactInput = z.infer<