fix(open_url): open problem URL when switching problems

Also fix contest-change detection so URL open logic triggers when either platform or contest changes. This makes :CP next/:CP prev and problem jumps open the correct page when open_url is enabled.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-02-22 20:44:40 -05:00 committed by Barrett Ruth
parent d3ac300ea0
commit 1c31abe3d6
2 changed files with 6 additions and 3 deletions

View file

@ -143,7 +143,7 @@ run CSES problems with Rust using the single schema:
(default: concatenates contest_id and problem_id, lowercased)
{ui} (|CpUI|) UI settings: panel, diff backend, picker.
{open_url} (boolean) Open the contest & problem url in the browser
when the contest is first opened.
when a new contest is opened or the active problem changes.
*CpPlatform*
Fields: ~