Skip to content

fix(agent-runtime): stop after local prompt config errors - #1157

Closed
cyphercodes wants to merge 9029 commits into
CodebuffAI:mainfrom
cyphercodes:oss/freebuff-prompt-error-abort-1155
Closed

fix(agent-runtime): stop after local prompt config errors#1157
cyphercodes wants to merge 9029 commits into
CodebuffAI:mainfrom
cyphercodes:oss/freebuff-prompt-error-abort-1155

Conversation

@cyphercodes

Copy link
Copy Markdown

Summary

  • stop callMainPrompt() immediately after reporting local agent-template validation errors
  • add a regression test that verifies invalid local config sends only prompt-error and does not continue into the prompt run

This addresses the prompt-error orphaning part of #1155.

Validation

  • bun test packages/agent-runtime/src/__tests__/main-prompt.test.ts -t "stops after reporting local agent validation errors"
  • bun test packages/agent-runtime/src/__tests__/main-prompt.test.ts
  • git diff --check

Refs #1155

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:triaged Classified by the community triage bot pr:port-candidate Worth porting into the private source tree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants