[Feature Request] Chat Turn Management (Rewind/Delete/Edit) & Response Sanitization Middleware #4374
Master-Antonio
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Currently,
dshtreats the conversation log as strictly append-only. When an upstream provider returns malformed responses, fails a tool call, or causes a loop, the context window gets polluted with unrecoverable noise (e.g., repeated error recovery messages or brokenHTML artifacts).
I would like to propose two key UX and backend enhancements:
1. Interactive Turn Management (Rewind / Delete / Branch)
Problem:
Proposed Solution:
session.jsonl.2. Provider Output Sanitization & Compatibility Handling
Problem:
contentfield (e.g.,<details><summary></summary>```Response ID / Request ID```</details>).dshagentic tool-calling JSON parsers (e.g., missing required argument errors onReadorAsk question).reasoning_effortrequirements (e.g., TokenRouter expectingxhighinstead ofhigh/max) trigger 400 Bad Request errors unless manually mapped.Proposed Solution:
settings.yamlundercompat.stripHtmlTags: trueorcompat.cleanResponsePatterns) to strip injected<details>metadata blocks before markdown rendering and tool parsing.reasoning_effortif unsupported by the target provider.Why this benefits
dsh:+ New Session.All reactions