fix(agent): preserve staged assign assignees - #3448
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-05 07:25:55 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 3 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3448 +/- ##
=======================================
Coverage 93.46% 93.46%
=======================================
Files 291 291
Lines 30790 30791 +1
Branches 11221 11222 +1
=======================================
+ Hits 28779 28780 +1
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
Motivation
assignaction staged asauto_with_approvallost its target login because the approval-queue serialization omittedassignee, so accept-time replay reconstructed an assign with noassigneeand the executor no-oped while still recording the action as completed.Description
assigneewhen serializing aPlannedAgentActioninactionParams()so staged assign actions persist the target login.assignee?: stringtoAgentPendingActionParamsto match the persisted payload shape.assignaction round-trips throughactionParams()→ DB params →pendingActionToPlanned()and preservesassignee.Testing
test/unit/agent-action-executor.test.ts(assign round-trip) andtest/unit/agent-approval-queue.test.ts(params/replay coverage), and the targeted tests passed.tsc --noEmit) completed successfully.npm run test:coveragerun was started but did not complete in the available session time; focused unit runs were used as regression validation for this targeted fix.Codex Task