Skip to content

Ambiguous references ("the previous option") can drop items #5

Description

@vgpastor

Problem / Problema

EN: When a user refers back to something ambiguously ("the previous option",
"la opción anterior", "that one"), the agent sometimes resolves it incorrectly
and can drop items from a multi-item action (e.g. an inventory entry with several
supplies).

ES: Cuando el usuario se refiere a algo de forma ambigua ("la opción
anterior", "esa", "the previous one"), el agente a veces lo resuelve mal y puede
perder items de una acción con varios elementos (p. ej. una entrada de inventario
con varios suministros).

Expected / Esperado

Ambiguous references should either resolve correctly from recent context or the
bot should ask a short clarifying question — never silently drop data.

Notes / Notas

  • Relevant: session memory (src/infrastructure/persistence/file-session-store.ts,
    it prunes to a max item count) and the agent instructions in
    src/agent/agent.ts.
  • A reproducible transcript in the issue would help a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentAgent, tools and promptsbugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions