feat(worker): drop 'agent' tag gate from queue claim

Queueing a task is itself the explicit "run me" signal — the extra
tag/list filter was redundant and surprised users whose queued tasks
were silently skipped.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-04-29 10:39:36 +02:00
parent 5079a5fc5c
commit cfbe2fd7e3
3 changed files with 8 additions and 19 deletions

View File

@@ -99,13 +99,15 @@ public sealed class QueuePickerTests : IDisposable
}
[Fact]
public async Task ClaimNextAsync_Skips_TasksWithoutAgentTag()
public async Task ClaimNextAsync_Picks_TasksWithoutAgentTag()
{
// Queueing a task is itself the explicit "run me" signal — no tag gate.
var listId = await CreateListAsync(listAgentTag: false);
await SeedAsync(listId);
var task = await SeedAsync(listId);
var picked = await _picker.ClaimNextAsync(DateTime.UtcNow, CancellationToken.None);
Assert.Null(picked);
Assert.NotNull(picked);
Assert.Equal(task.Id, picked!.Id);
}
[Fact]