jamesnetherton opened a new pull request, #9588:
URL: https://github.com/apache/camel-quarkus/pull/9588

   `getConsoleJSON` went through the per-console subscription map that backs 
streaming. A one-off call started a ticker that was never cancelled, and later 
calls for that console ran with the first caller's options instead of their own.
   
   Streams shared the same map, so a second browser tab reused the first tab's 
options, and closing one tab stopped the other's stream. Option updates also 
cleared and refilled the map while the ticker read it without a lock.
   
   Changes:
   
   - `getConsoleJSON` calls the console directly with its own options.
   - Each `streamConsole` call returns an independent `Multi` with fixed 
options. The Dev UI JSON-RPC router cancels it when the client unsubscribes.
   - Removed the subscription map, `deactivateConsoleStream` and 
`updateConsoleOptions`. Nothing else in the project uses them, and the Camel 
pages in other extensions all go through the `QwcCamelCore` base class.
   - `qwc-camel-core.js`:
     - `putOption` reopens the stream with the new options.
     - A stale initial fetch no longer opens a stream.
     - The stream is reopened whenever the page is attached again.
   
   `CamelQuarkusCoreDevUIErrorsTest` now checks that a second `getConsoleJSON` 
call uses its own options. That check fails without this change. The 
separate-tab behaviour has no automated test, because the Dev UI test SPI only 
supports one-off calls, so it was checked manually in the browser.
   
   This is groundwork for upcoming Dev UI trace and message history pages, 
which need one-off calls to toggle tracing while a stream is open.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to