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
{{ message }}
Repository navigation
Investigate original native relative-fragment link selector hang during whole browser qualification #2048
HEAD dd3d9e62a9b53e064042bd0a164578fc9a770041 plus only local source-page test fixture correction. Evidence retained in C:\dev\Phantom.Workspaces-Skills\worktrees\pf1117-1545: .scratch1809-current-full-native-results.log, .scratch1809-current-full-native-command.log; Phantom.Workspaces.Agent.Gui.WebViewTests\TestResults\jrowe_DAEMON_2026-12-05_00_30_34_net10.0.trx. Whole native run aborted; four completed cases, one passed and three failed. No retries, assertion weakening, timeout changes, or private/live data access. Dedicated isolated read-only diagnosis required before correction.
Incomplete selector AgentChatOutputControl_RelativeAndFragmentLinks_PreserveBoundOriginAndRawReference. Blame4min watchdog aborted. Dumps retained in Phantom.Workspaces.Agent.Gui.WebViewTests\TestResults\016dfcac-8a49-44a7-bc37-c15270b1fd8e: Phantom.Workspaces.Agent.Gui.WebViewTests_49164_20261205T003528_hangdump.dmp and testhost_32028_20261205T003528_hangdump.dmp; Sequence_b5033902adf2408890f653cc3eb541e1.xml. Actual initiating stage unknown, no old cleanup initiator presumed identical.
Actual hang ownership and bounded read-only diagnosis at dd3d9e62
Analyzed both supplied actual dumps, without replaying the test: Phantom.Workspaces.Agent.Gui.WebViewTests_49164_20261205T003528_hangdump.dmp (native test executable/owner) and testhost_32028_20261205T003528_hangdump.dmp, alongside Sequence_b5033902adf2408890f653cc3eb541e1.xml. The sequence marks this original selector incomplete after both million-history variants, shell reload, and the first-attach live assertion completed.
Proven initiating stage of this hang: native-owner dumpasync --completed false stack 5 is waiting on Task<(IAgentChat,string,AgentDocumentOrigin)> at 000001edd12b9090. Its owning selector state machine is 000001edd1264788, state 5, suspended at await received.Task in ChatOutputControlLifecycleWebViewTests.cs:157, after both script invocations returned. The closure at 000001edd1264860 has requests=0. The callback exists on the actual bound view model (000001edd12adf68), and the control remains bound to that same view model. Thus no relative-link callback was delivered. This is not a stall at Ready, HistoryLoaded, InvokeScript, window.Close, DisposeAsync or fixture teardown.
Owners are not deadlocked in cleanup: native-owner UI thread index 7 / OS 0x90D4 is pumping GetMessage -> Avalonia.Win32DispatcherImpl.RunLoop -> Dispatcher.MainLoop -> WebViewAppFixture (clrstack). The live ChatOutputHtmlModel and its virtual graph workers are idle on their input semaphores, with no model/source failures. Browser pending publication records/bytes are 0, and its last publication task is completed. The model's final logical/source snapshot count is 1. In the separate testhost dump, xUnit is waiting for the child test process to exit and reading its output; testhost is a waiter, not the initiator. No pending teardown chain supports reusing an old cleanup diagnosis.
UNKNOWN why the click produced no callback. The native WebView2 JavaScript/DOM state at the two click instants is not contained in these managed owner fields. Successful completion of InvokeScript is not an assertion that querySelector(...).click() actually executed: the original helpers do not validate its result or anchor existence, and JavaScript evaluation failure can return without the .NET test throwing. Nor does a populated graph several minutes later prove the anchors existed when clicked. Do not claim a failed URL decode, lost document origin, fragment navigation/reload, or native deadlock without further evidence.
A concrete directly exercised readiness defect is established independently by source: source-backed ready controls pass empty legacy history (AgentChatOutputControl.axaml.cs:481-501), while ChatOutputHtmlModel.LoadedAsync:263-267 and the control's CompleteWhenLoadedAsync:559-567 do not join source attachment or snapshot hydration. AttachDisplayCoreAsync has an async promotion-capture gap before snapshot setup and page loading (ChatOutputDisplayHistoryLoad.cs:283-331). This allows the original HistoryLoaded await to precede native anchor materialization; it is a plausible causal link to the missed click, not proven to be the exact click schedule in this occurrence.
Surgical correction scope: restore the production source-backed history barrier to actual authoritative snapshot/native-acknowledged completion, propagating source errors; then retain the original real anchors, fragment-only no-request assertion, relative raw ../a%20b%23%25.md#section, exact bound chat, recorded historical DocumentOrigin, and exactly-one callback. Make script readback assert real anchor existence/click execution instead of treating a returned script task as that proof. Bounded failure reporting may prevent an infinite callback wait, but increasing the watchdog or adding a timeout alone is not the causal correction. Do not substitute mutable bodies, fake anchors/slots, or weaken producer/source/native receipts.
Independence from this branch: UNKNOWN; the selector directly exercises modified browser/lifecycle/source hookup. All evidence remains at the supplied original paths; no source/test edits, builds/tests/retries, dump moves/deletes, gitignore changes, or private/live app data access.
Activity
JoshuaRowePhantom commentedon Dec 5, 2026
Actual hang ownership and bounded read-only diagnosis at dd3d9e62
Analyzed both supplied actual dumps, without replaying the test:
Phantom.Workspaces.Agent.Gui.WebViewTests_49164_20261205T003528_hangdump.dmp(native test executable/owner) andtesthost_32028_20261205T003528_hangdump.dmp, alongsideSequence_b5033902adf2408890f653cc3eb541e1.xml. The sequence marks this original selector incomplete after both million-history variants, shell reload, and the first-attach live assertion completed.Proven initiating stage of this hang: native-owner
dumpasync --completed falsestack 5 is waiting onTask<(IAgentChat,string,AgentDocumentOrigin)>at000001edd12b9090. Its owning selector state machine is000001edd1264788, state 5, suspended atawait received.TaskinChatOutputControlLifecycleWebViewTests.cs:157, after both script invocations returned. The closure at000001edd1264860has requests=0. The callback exists on the actual bound view model (000001edd12adf68), and the control remains bound to that same view model. Thus no relative-link callback was delivered. This is not a stall at Ready, HistoryLoaded, InvokeScript,window.Close, DisposeAsync or fixture teardown.Owners are not deadlocked in cleanup: native-owner UI thread index 7 / OS 0x90D4 is pumping
GetMessage -> Avalonia.Win32DispatcherImpl.RunLoop -> Dispatcher.MainLoop -> WebViewAppFixture(clrstack). The live ChatOutputHtmlModel and its virtual graph workers are idle on their input semaphores, with no model/source failures. Browser pending publication records/bytes are 0, and its last publication task is completed. The model's final logical/source snapshot count is 1. In the separate testhost dump, xUnit is waiting for the child test process to exit and reading its output; testhost is a waiter, not the initiator. No pending teardown chain supports reusing an old cleanup diagnosis.UNKNOWN why the click produced no callback. The native WebView2 JavaScript/DOM state at the two click instants is not contained in these managed owner fields. Successful completion of
InvokeScriptis not an assertion thatquerySelector(...).click()actually executed: the original helpers do not validate its result or anchor existence, and JavaScript evaluation failure can return without the .NET test throwing. Nor does a populated graph several minutes later prove the anchors existed when clicked. Do not claim a failed URL decode, lost document origin, fragment navigation/reload, or native deadlock without further evidence.A concrete directly exercised readiness defect is established independently by source: source-backed ready controls pass empty legacy history (
AgentChatOutputControl.axaml.cs:481-501), whileChatOutputHtmlModel.LoadedAsync:263-267and the control'sCompleteWhenLoadedAsync:559-567do not join source attachment or snapshot hydration.AttachDisplayCoreAsynchas an async promotion-capture gap before snapshot setup and page loading (ChatOutputDisplayHistoryLoad.cs:283-331). This allows the original HistoryLoaded await to precede native anchor materialization; it is a plausible causal link to the missed click, not proven to be the exact click schedule in this occurrence.Surgical correction scope: restore the production source-backed history barrier to actual authoritative snapshot/native-acknowledged completion, propagating source errors; then retain the original real anchors, fragment-only no-request assertion, relative raw
../a%20b%23%25.md#section, exact bound chat, recorded historical DocumentOrigin, and exactly-one callback. Make script readback assert real anchor existence/click execution instead of treating a returned script task as that proof. Bounded failure reporting may prevent an infinite callback wait, but increasing the watchdog or adding a timeout alone is not the causal correction. Do not substitute mutable bodies, fake anchors/slots, or weaken producer/source/native receipts.Independence from this branch: UNKNOWN; the selector directly exercises modified browser/lifecycle/source hookup. All evidence remains at the supplied original paths; no source/test edits, builds/tests/retries, dump moves/deletes, gitignore changes, or private/live app data access.