feat: enhance parser feedback mechanism for improved user guidance

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-23 22:55:16 -04:00
parent c2d12ffcc9
commit 2f6af46c79
5 changed files with 174 additions and 16 deletions

View File

@@ -47,6 +47,7 @@ type Snapshot = {
type TurnResult = {
narration: string;
parser: string;
parser_feedback?: string;
actions: Array<Record<string, unknown>>;
accepted: Array<Record<string, unknown>>;
rejected: Array<{ action: Record<string, unknown>; reason: string }>;
@@ -146,6 +147,9 @@ export default function App() {
<section className="result-card">
<h2>Latest result</h2>
<p>{latest.narration}</p>
{latest.parser_feedback ? (
<p className="parser-hint">Parser guidance: {latest.parser_feedback}</p>
) : null}
<pre>{JSON.stringify({ actions: latest.actions, rejected: latest.rejected, latent: latest.latent_resolution }, null, 0)}</pre>
</section>
) : null}