fix(hub): focus the agent order title once it draws, not after 50 ms
openAgentOrder focused the Agent priority title on a 50 ms timer after setting the hash; when the hierarchy rendered later, as under memory pressure, the title never got focus. It now hands order:title to the order panel's next draw. The w6 probe waits for the speaking bubble instead of reading it the moment the first one has faded. 🎯 Fix: 85 % 💥 Break: 3 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 82 🚦 Gate: ⛔ fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
12ba051998
commit
f23ed40f0e
2 files changed
+3
-8
No files matched your search
@@ -1,14 +1,9 @@
|
|||||||
const orderDom = {box: null, slot: null, dragged: null, focus: null};
|
const orderDom = {box: null, slot: null, dragged: null, focus: null};
|
||||||
|
|
||||||
function openAgentOrder() {
|
function openAgentOrder() {
|
||||||
|
orderDom.focus = "order:title";
|
||||||
go("agents", "hierarchy");
|
go("agents", "hierarchy");
|
||||||
window.setTimeout(() => {
|
drawAgentOrder();
|
||||||
const title = document.getElementById("agent-order-title");
|
|
||||||
if (title) {
|
|
||||||
title.scrollIntoView({block: "nearest"});
|
|
||||||
title.focus();
|
|
||||||
}
|
|
||||||
}, 50);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function syncOrder() {
|
function syncOrder() {
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ BUBBLES_GROW = """(async () => {@HELPERS@@READ@
|
|||||||
let grown = null;
|
let grown = null;
|
||||||
if (left) {
|
if (left) {
|
||||||
await Promise.all((speaking() ? speaking().getAnimations() : []).map((animation) => animation.finished.catch(() => null)));
|
await Promise.all((speaking() ? speaking().getAnimations() : []).map((animation) => animation.finished.catch(() => null)));
|
||||||
grown = read(speaking());
|
grown = read(await until(speaking, 4000));
|
||||||
await until(() => mine().some((entry) => entry.removed), 4000);
|
await until(() => mine().some((entry) => entry.removed), 4000);
|
||||||
await until(() => (window.e2eFades || []).some((entry) => entry.who === who && entry.removed !== null && entry.reference !== null), 2000);
|
await until(() => (window.e2eFades || []).some((entry) => entry.who === who && entry.removed !== null && entry.reference !== null), 2000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user