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
+1 -21
View File
@@ -43,7 +43,6 @@ const DEFAULT_INITIALIZATION_TIMEOUT_MS = 10_000
const DEFAULT_SHUTDOWN_TIMEOUT_MS = 2_000
const DEFAULT_MAX_STDERR_BYTES = 64 * 1024
const DEFAULT_MAX_EVENT_CHARACTERS = 64 * 1024
const DEFAULT_MAX_REQUEST_OUTPUT_CHARACTERS = 4 * 1024 * 1024
const MAX_QUEUED_UPDATES = 1_000
const MAX_APPROVAL_DETAIL_CHARACTERS = 4_000
const MAX_MCP_PROXY_TOOLS = 100
@@ -199,7 +198,6 @@ export type DeepSeekHarnessRuntimeOptions = {
shutdownTimeoutMs?: number
maxStderrBytes?: number
maxEventCharacters?: number
maxRequestOutputCharacters?: number
credentialRefs?: Readonly<Record<string, string>>
skillPackages?: RuntimeSkillPackage[]
extensionPackages?: ControlledHarnessExtensionPackage[]
@@ -215,7 +213,6 @@ type ActiveRun = {
toolNames: Map<string, string>
wake?: () => void
closed: boolean
outputCharacters: number
}
type HarnessState = {
@@ -498,13 +495,6 @@ export class DeepSeekHarnessRuntime implements AgentRuntime {
)
}
private get maxRequestOutputCharacters(): number {
return (
this.options.maxRequestOutputCharacters ??
DEFAULT_MAX_REQUEST_OUTPUT_CHARACTERS
)
}
private async terminate(
child: DeepSeekHarnessChild
): Promise<void> {
@@ -614,15 +604,6 @@ export class DeepSeekHarnessRuntime implements AgentRuntime {
)
return
}
run.outputCharacters += eventLength
if (
run.outputCharacters > this.maxRequestOutputCharacters
) {
this.fail(
new Error('DeepSeek Harness 请求累计输出超过安全限制')
)
return
}
const event = this.bridgeEventToUpdate(params) ?? {
sessionUpdate: 'goodbuddy_event',
goodBuddyEvent: params
@@ -1460,8 +1441,7 @@ export class DeepSeekHarnessRuntime implements AgentRuntime {
authorize,
updates: [],
toolNames: new Map(),
closed: false,
outputCharacters: 0
closed: false
}
this.activeRuns.set(sessionId, run)
yield {