mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 20:15:48 +00:00
fix(teams): simplify post-turn task action fallback to auto-complete
The case expression `taskActionFlags.Progressed || ...` always evaluates to `true/false`, never matching the switch value. Merge it into the default branch so non-terminal actions consistently auto-complete.
This commit is contained in:
1 parent
22dc87a262
commit
5ed86b84c0
1 file changed
+2
-8
@@ -404,15 +404,9 @@ func handleTeammateMessage(
|
||||
_ = teamStore.RenewTaskLock(ctx, teamTaskID, teamID)
|
||||
slog.Info("post-turn: task submitted for review", "task_id", teamTaskID)
|
||||
|
||||
case taskActionFlags.Progressed || taskActionFlags.Commented || taskActionFlags.Claimed:
|
||||
// Member interacted but didn't take terminal action — renew lock.
|
||||
_ = teamStore.RenewTaskLock(ctx, teamTaskID, teamID)
|
||||
slog.Warn("post-turn: member did not take terminal action",
|
||||
"task_id", teamTaskID, "progressed", taskActionFlags.Progressed,
|
||||
"commented", taskActionFlags.Commented, "claimed", taskActionFlags.Claimed)
|
||||
|
||||
default:
|
||||
// No task action flags recorded — backward compat: auto-complete.
|
||||
// Agent turn ended without terminal action — auto-complete.
|
||||
// Covers: Progressed, Commented, Claimed, or no flags at all.
|
||||
if outcome.Result != nil {
|
||||
result := outcome.Result.Content
|
||||
if len(outcome.Result.Deliverables) > 0 {
|
||||
|
||||
Reference in new issue
Block a user