-
-
Notifications
You must be signed in to change notification settings - Fork 50
chore(security): resolve code-scanning and Dependabot findings #2087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -156,7 +156,7 @@ def from_dict(cls, data: str | dict[str, Any]) -> AgentInfo: | |||||
| role=str(data.get("role", "")), | ||||||
| model=str(data.get("model", "")), | ||||||
| status=str(data.get("status", "idle")), | ||||||
| task_ids=list(cast("list[str]", data.get("task_ids") or [])), | ||||||
| task_ids=cast("list[str]", data.get("task_ids") or []).copy(), | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Restore iterable-safe conversion for Line 159 now assumes Proposed fix- task_ids=cast("list[str]", data.get("task_ids") or []).copy(),
+ task_ids=list(cast("Iterable[str]", data.get("task_ids") or [])),📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| runtime_s=float(data.get("runtime_s", 0.0)), | ||||||
| abort_reason=str(data.get("abort_reason", "")), | ||||||
| abort_detail=str(data.get("abort_detail", "")), | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): The new condition
expect is None is baseline_run_idis almost certainly a logic bug and changes semantics from the original check.The previous condition
if expect is None and baseline_run_id is Noneclearly required both to beNone. The newexpect is None is baseline_run_idis parsed as(expect is None) is baseline_run_id, i.e. an identity comparison between a boolean andbaseline_run_id, which changes behavior and is likely incorrect. If the intent is still to require both values to beNone, please restore the original condition; if the intent differs (e.g., tri‑state logic), it should be expressed more explicitly.