Skip to content

Resolve desktop workspace, analysis and reporting audit findings - #153

Merged
sh00kapic merged 34 commits into
mainfrom
fix/audit-desktop-workflows
Dec 1, 2026
Merged

sh00kapic merged 34 commits into
mainfrom
fix/audit-desktop-workflows

Conversation

@sh00kapic

@sh00kapic sh00kapic commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Implements the desktop UI, UX and performance audit tracked in #151. The working base is upstream main at 6195d75. This branch includes #152 and can be reviewed as the combined result.

What changes for users

Area Changes
Starting and stopping work Desktop updates download separately and wait for an explicit restart. Drafts can be saved across roots. Active local work blocks update installation. Cloud runs report bytes and distinguish stop requested, cancelled, rejected, detached and complete. Quote approval checks the current job, price and expiry.
Source navigation and editing Finding links check the repository, revision and file bytes before opening. Going back restores triage context. Drafts survive folder switches. Conflicted tabs offer compare, save a copy, reload and cancel. Tree browsing, Quick Open, layout and focus work at the minimum size.
Reports and history Reports parse in a worker and render at most 50 findings at a time. Tool reports appear independently and can be retried. The bounded cache is scoped by identity. History lists contain metadata. Selected report previews load on demand. Older organization jobs open by ID.
Local analysis Compilation databases are indexed once per run. Discovery can be cancelled. Folder output streams to disk with bounded previews, live file counts and explicit coverage. Metadata and artifacts have separate retention.
Account, repositories and support Cloud domains recover independently after connectivity loss. GitHub link polling ends when the flow finishes. Clones publish after completion and retry after interruption or authentication failure. Offline runs reopen from Home. Support reports show exact attachments and reuse a server receipt after a local storage failure.

Review and verification

Three GPT-6.2 Sol agents worked in separate checkouts. Integration review found and fixed cross-root shortcuts, a stale Monaco source buffer after revision verification, a selected finding moving when more results arrived, cached data surviving an account change, and persistence failures after support submission. A cross-process file lock protects atomic history migration and orphan cleanup.

Fixture Result
500 / 5,000 / 20,000 findings in production Chrome, 880 × 600, fixture Tauri IPC 50 rows and 761 elements for all three sizes. Returning Home reduced the page to 125 elements and zero findings. No editor assets loaded. Across three passes, median click-to-second-animation-frame was 16 / 24 / 47 ms. Median filter input-to-second-frame was 6 / 8 / 10 ms. First cold 500-row open was 190 ms.
Heap and models At 20,000 findings, last-pass main JS heap after GC was 8.1 MiB open and 7.8 MiB immediately back on Home. In a separate editor run, closing 32 tabs released all 32 models and reduced heap from 25.3 MB to 16.4 MB after GC.
369-source C++ checkout Database lookup fell from 369 reads in 4,140 ms to one in 21 ms. Discovery took 33.8 ms. A separate 20,000-entry discovery cancellation fixture stopped in 0.45 ms.
Increasingly verbose local runs At 12.6 / 201.4 / 402.7 MB of archived logs, native peak working set was 16.48 / 16.47 / 16.56 MB, excluding spawned tools. Result IPC stayed near 263 KB.
Migrating local history 1,379,052-byte legacy session became 7,184 bytes. Listing 20 entries took 4,031 bytes over IPC. Fixture migration took 106 ms and a warm metadata reload took 0.30 ms.
Production keyboard and contrast checks Verified a 5,001-entry tree, the 40th Quick Open match, switching between dirty roots, conflict recovery and leaving Monaco by keyboard. Primary text measured 5.98:1 normally and 5.62:1 on hover.
Real screen-reader output Orca 43.1 and Speech Dispatcher on isolated Linux, Chromium, X11 keyboard, fixture Tauri IPC. Orca spoke the preparation and verification changes once each, the 42 CTU quote, organization, deadline and approval error. A focused error survived eight seconds. Quick Open announced the 40th option, module-40.c, after repeated arrow keys settled, with focus still in the combobox. Orca also spoke the external-edit conflict dialog, Compare, Save a copy and the simulated copy failure during keyboard navigation.
Local gates 152 frontend tests and 76 native tests passed. Rust 1.95.0 Clippy with warnings denied, formatting, TypeScript and the production frontend build passed.
Native integrations Real Git loopback tests cover HTTP 401 and interruption followed by successful retry. Ubuntu 24.04 WSL verified the official Linux analyser package digest and ran the clean C fixture, producing SARIF 2.1.0. The optional official-download Rust test targets supported managed analyser systems.

The browser tests used fixture platform responses. No production job was billed and no installer was applied to the user's running application. Older history uses direct job ID lookup because the current list endpoint supplies only the newest 200 jobs. Unindexed raw directories left by a crash are retained when their ownership cannot be established.

Closes #93, closes #94, closes #124, closes #125, closes #126, closes #127, closes #128, closes #129, closes #130, closes #131, closes #132, closes #133, closes #134, closes #135, closes #136, closes #137, closes #138, closes #139, closes #140, closes #141, closes #142, closes #143, closes #144, closes #145, closes #146, closes #147, closes #148, closes #149, closes #150.

@sh00kapic
sh00kapic marked this pull request as ready for review December 1, 2026 15:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T15:54:23.341551Z 929393a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sh00kapic
sh00kapic merged commit 7db2bc5 into main Dec 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment