You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems inside the utils file, that both WaitFor and WaitForElement are very similar and attempt to do the same thing? This seems redundant. one of them should be removed
Activity
Benjamincf0 commentedon Mar 17, 2026
/oc explain this issue and how to resolve it
opencode-agent commentedon Mar 17, 2026
Analysis
The issue is valid. Both functions do the same thing:
waitForwaitForElementdocument.bodydocumentBoth use
MutationObserverto wait for DOM elements matching a selector, then disconnect and return the element.Resolution
The functions are redundant. Recommend keeping
waitFor(used more frequently) and consolidatingwaitForElementinto it:uimanager.tsto usewaitForwith a callbackwaitForElementfrom utils.tsThis simplifies maintenance. Want me to make these changes?
opencode session | github run
Benjamincf0 commentedon Mar 17, 2026
/oc ok sure do that and then make a pr
opencode-agent commentedon Mar 17, 2026
Created PR #2
opencode session | github run