Skip to content

Reject leaked tool-call markers in one-shot output - #538

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/clever-kestrel-9317f42a
Aug 9, 2026
Merged

Reject leaked tool-call markers in one-shot output#538
SDSLeon merged 1 commit into
masterfrom
poracode/clever-kestrel-9317f42a

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 9, 2026

Copy link
Copy Markdown
Owner
  • Treat leaked DeepSeek tool-call markers (e.g. <|DSML|tool_calls>) as an error in runOpenCodeOneShot instead of surfacing raw markers as title text.
  • Hardened the title-generator prompt to answer from the message alone and forbid tool calls or tool-call syntax.
  • Added table-driven tests covering both marker formats and verifying the session is disposed on rejection.

Tickets: none

- Fail OpenCode one-shot when the response leaks a DSML tool-call marker instead of text, with tests covering both marker spellings
- Instruct the title generator to answer from the message alone without calling tools or emitting tool-call syntax
@SDSLeon
SDSLeon merged commit 09dd2ec into master Aug 9, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/clever-kestrel-9317f42a branch August 9, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant