mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-04 01:18:39 +00:00
Separate leaked-call classification from retry handling so Context Doctor
can apply XML suppression, thought splitting, and log settings before the
history entry is saved. Keep rejected calls out of JSON repair and tool
dispatch; disabling XML suppression retains them only as thoughts.
Core still owns bounded retries and history insertion, defaults to {} when
the plugin is disabled, and clears replayable Responses output and pending
continuation state. Update plugin settings guidance and ownership docs.
Validation: 455 focused tests passed locally and in Docker's framework
runtime. Restarted the idle live app, verified health and actual extension
ordering, and found no startup error markers.
63 lines
2.3 KiB
HTML
63 lines
2.3 KiB
HTML
<html>
|
|
<head>
|
|
<title>Context Doctor Settings</title>
|
|
</head>
|
|
<body>
|
|
<div x-data>
|
|
<template x-if="config">
|
|
<div>
|
|
<div class="section-title">Context Doctor</div>
|
|
<div class="section">
|
|
<div class="section-title">Debug</div>
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Update log content</div>
|
|
<div class="field-description">
|
|
Replace the View Details content shown in the WebUI log with repaired JSON instead of model response.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<label class="toggle">
|
|
<input type="checkbox" x-model="config.update_log" />
|
|
<span class="toggler"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section">
|
|
<div class="section-title">Strategies</div>
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Suppress XML output</div>
|
|
<div class="field-description">
|
|
Remove unusable XML-like output from model history. When off, keep it as non-executable thoughts.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<label class="toggle">
|
|
<input type="checkbox" x-model="config.suppress_xml" />
|
|
<span class="toggler"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="field-label">
|
|
<div class="field-title">Split thoughts on blank lines</div>
|
|
<div class="field-description">
|
|
Replace blank lines inside thoughts with separate thought entries after JSON repair.
|
|
</div>
|
|
</div>
|
|
<div class="field-control">
|
|
<label class="toggle">
|
|
<input type="checkbox" x-model="config.split_thoughts" />
|
|
<span class="toggler"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</div>
|
|
</body>
|
|
</html>
|