Skip to content

fix(orchestrator): guard missing <plan> block and fix TaskRecorder input default_factory (#261) - #281

Open
PiedPiper911 wants to merge 1 commit into
TencentCloudADP:mainfrom
PiedPiper911:fix/issue-261-orchestrator-plan-parse
Open

fix(orchestrator): guard missing <plan> block and fix TaskRecorder input default_factory (#261)#281
PiedPiper911 wants to merge 1 commit into
TencentCloudADP:mainfrom
PiedPiper911:fix/issue-261-orchestrator-plan-parse

Conversation

@PiedPiper911

Copy link
Copy Markdown

@C:/Users/PiedPiper888/WorkBuddy/2026-08-03-14-30-56/pr_body_261.md

…put default_factory (TencentCloudADP#261)

Two small bugs reported in TencentCloudADP#261:
1. `Chain._parse`: when the LLM response omits the `<plan>` block (degenerate or partial
   output), `match.group(1)` raised AttributeError. Guard it with `if match else ""`,
   mirroring the existing `<analysis>` guard.
2. `TaskRecorder.input` is annotated `str | list[...]` but used `default_factory=dict`
   (copy-paste slip), which builds a dict instead of a list. Changed to
   `default_factory=list`.
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