fix(orchestrator): Tasks badge counts only open operator work
A console whose operator row is already done stays under Waits on Operator for reading and dismissing, but it is marked settled and no longer counts in the Tasks badge or the tab title. Live hub: 41 done and 14 failed undismissed results kept the badge at 50 with nothing left to do. 🎯 Fix: 95 % 💥 Break: 3 % 💸 Tokens: 100 % ⏱️ Velocity: 100 % 🛡️ Security: 100 % 🏆 Score: 92 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8db5ec4956
commit
4c4a3ab227
4 files changed
+7
-6
No files matched your search
@@ -56,8 +56,9 @@ class TestHubConsole(HubCase):
|
||||
self.register("done")
|
||||
kept = self.item("operator/greet")
|
||||
self.assertEqual((kept["kind"], kept["title"], kept["command"], kept["directory"], kept["runnable"], kept["deniable"]), ("operator", COMMAND, COMMAND, str(self.outside), False, False))
|
||||
self.assertEqual(kept["job"]["output"], "line 1\nline 2\n")
|
||||
self.assertEqual(self.snapshot()["badges"]["tasks"], 1)
|
||||
self.assertEqual((kept["job"]["output"], kept["settled"]), ("line 1\nline 2\n", True))
|
||||
self.assertEqual(self.snapshot()["badges"]["tasks"], 0)
|
||||
self.assertIn("<title>Agent Orchestrator</title>", self.index())
|
||||
for payload in ({"id": "nope"}, {"id": job["id"], "extra": 1}, {}, [job["id"]]):
|
||||
with self.subTest(payload=payload):
|
||||
self.assertEqual(self.dismiss(payload, self.guard(self.host)), 400)
|
||||
|
||||
Reference in new issue
Block a user