Repository navigation
feat: add a desktop app (Electron + React) - #164
Open
Wengaiqiqi wants to merge 3 commits into
Open
Wengaiqiqi wants to merge 3 commits into
Wengaiqiqi wants to merge 3 commits into
Conversation
Reasoning models (o-series, gpt-5) reject max_tokens in favor of max_completion_tokens and only accept the default temperature/top_p, while many OpenAI-compatible services still expect the classic names. Requests now start with the classic parameters and adapt once when a 400 names the offending parameter; the working style is remembered per endpoint and model. An empty answer cut off by the token limit now raises a clear error instead of returning an empty review.
A desktop front end for the analyzer in desktop/, reusing the compiled core so scores match the CLI exactly. - Pick or drop a project folder; overview with mess index, quality level, metric breakdown, categories and languages - Files view with a detail panel, paginated functions view - AI review of the worst files, with per-project saved results that can be expanded or collapsed; models can be fetched from the provider - Export reports (HTML/Markdown/JSON) and reviews (Markdown/HTML) - Recent projects reopen from a cached report; delete from a hover or right-click menu - Settings for language, theme, analysis and AI provider; the API key is encrypted with the OS keychain - UI in Simplified/Traditional Chinese, English and Russian
…e bar - English is the default UI language; a locale guessed from the OS by earlier builds is ignored once, so only a user's own choice is kept. - The title bar gets a quick EN / 中文 toggle; Settings still lists every language. - Shorter "Params" header and a wider complexity column so English headers fit in the functions table.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a desktop app for the analyzer under
desktop/(Electron + React, UI built with Astryx). It reuses the compiled core, so scores match the CLI exactly.Also includes a fix in the OpenAI provider (
src/ai/providers/openai.ts): reasoning models (o-series, gpt-5) rejectmax_tokensand non-defaulttemperature/top_p. Requests now start with the classic parameters and adapt once when a 400 names the offending parameter; the working style is remembered per endpoint and model. Covered by new unit tests.How to run
See
desktop/README.mdfor details.Checks
npm test: 210 tests passnpx tsc --noEmitandnpm run lintpass