Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,16 @@ The `settings` window imports, enables, and removes skills
and removes toolchain profiles, package-network profiles, and, on Windows,
container grants, after native confirmations; none can be edited
([ADR-0088](docs/adr/0088-change-execution-settings-in-the-settings-window.md)).
It also proposes toolchain profiles for the installed Rust, C and C++, Java,
Python, Perl, Go, Node.js, .NET, and Ruby toolchains from a core service that
reads install folders, the operator's `PATH`, and installer-written files,
runs no program, and never reads repository configuration such as
`rust-toolchain.toml`. The operator selects
proposals, and one native confirmation per batch records them through the
core add call on every platform. On Windows a separate command, after its
own confirmation, grants a workspace's container the folders it needs that
this account can change; discovery grants nothing
([ADR-0103](docs/adr/0103-generate-toolchain-profiles-from-installed-toolchains.md)).
Other credentials, apart from ChatGPT sign-in and sign-out, still change, and packages are fetched and programs run,
only through the trusted CLI. The desktop shell has no working terminal, diff
view, installer, or recovery interface. CI publishes unsigned archives of the newest tested merge to
Expand Down
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,57 @@ Changes are recorded here before a release version is assigned.

### Added

- Version 0.68.0 adds **Generate toolchain profiles from local packages** to
the **Toolchain profiles** group of the desktop `settings` window. The
local packages are the toolchains installed on this computer, and it
generates toolchain profiles from those installed toolchains (ADR-0103).
A new
core service, `toolchain_discovery`, holds one detector
per family: Rust (rustup toolchains), C and C++ (MSVC with the Windows SDK,
Clang, and MinGW GCC on Windows; GCC and Clang on Linux), Java, Python,
Perl, Go, Node.js, .NET, and Ruby. It reads the standard install folders,
the operator's `PATH`, `JAVA_HOME`, `GOROOT`, and `RUSTUP_HOME`, and small
installer-written files, each checked to be a regular file before it is
opened; it runs no program, reads no registry key, and never reads
repository configuration such as `rust-toolchain.toml`. A folder that
`PATH` or one of those variables names is read like any install folder,
even inside the development root, and core refuses it as a root before
any confirmation. Each
proposal lists its roots, `PATH` entries, and derived non-secret variables
(such as `JAVA_HOME`, `GOROOT`, `DOTNET_ROOT`, and MSVC's `INCLUDE` and
`LIB`), plus the system part every profile needs, and notes when its family
has not passed the confined acceptance runs. No root is a filesystem or
drive root, the home folder or its ancestor, or itself a link (core
records a root's resolved location), and no reserved variable is
proposed. Past 32 proposals every base name keeps its first installation
first, and the list says how many installations it left out; a folder
listing keeps the first 512 directories by name. A Rust proposal is one
toolchain directory, without the rustup proxies or `~/.cargo`. Three
`settings`-only commands
(`settings_discover_toolchains`, `settings_add_discovered_profiles`, and
`settings_grant_discovered_roots`) carry only the revision, a workspace
identifier, and the digests of 1 to 8 selected proposals. Rust discovers
again and refuses a list that no longer matches as `discovery_changed`,
shows one native confirmation per batch that lists every root, `PATH` entry,
and variable with its value, and records each profile with `add_profile`
or, on Windows, grants read-execute access with `grant_container_access`,
from the confirmed revision. On Windows each root says whether the selected
workspace's container can read it, needs a grant, needs an
administrator, or could not have its access-control list read, read while
the settings store is closed, and choosing
another workspace generates the list again. Only folders this account can
change are granted; folders whose access-control list could not be read
are named and skipped. Core gains `ControlStore::check_profile`, which
applies every `add_profile` rule and records nothing, so each proposal
shows why core would refuse it, and `add_profile` now refuses a 33rd
profile with its own reason. `ControlStore::check_container_grants` does
the same for a batch of grants, counting the batch against the grant
limits, and the grant command runs it before its dialog;
`grant_container_access` uses the same checks and names both limits. A
workspace named in an add is checked before its dialog. Model runs
keep no network, a 20-second deadline, and 1 GiB of memory, so a `cargo`
build that needs crates.io dependencies still fails offline.

- Version 0.67.0 adds a per-session reasoning effort (ADR-0102). The desktop
model box has an **Effort** dropdown under **Model** with "Default", which
sends nothing, and None, Minimal, Low, Medium, High, Extra high, and Max. It
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "3"
members = ["crates/omgcode-core", "crates/omgcode-cli", "crates/omgcode-platform", "crates/omgcode-app", "crates/omgcode-desktop"]

[workspace.package]
version = "0.67.0"
version = "0.68.0"
edition = "2024"
rust-version = "1.99.1"
license = "Apache-2.0"
Expand Down
6 changes: 6 additions & 0 deletions crates/omgcode-app/src/desktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ mod settings;
mod settings_changes;
mod settings_chat;
mod settings_chatgpt;
mod settings_discovery;
mod settings_execution;
mod settings_skills;
mod settings_web_hosts;
Expand Down Expand Up @@ -128,6 +129,11 @@ pub use self::processes::{
};
use self::review_tokens::ReviewTokens;
pub use self::settings_changes::{Confirmation, FolderPurpose, SettingsPrompt};
pub use self::settings_discovery::{
DiscoveredGrantsRequest, DiscoveredProfilesRequest, MAX_SELECTED_PROPOSALS, ProposedRootView,
ProposedVariableView, ToolchainDiscovery, ToolchainDiscoveryRequest, ToolchainProposalView,
discovery_host,
};
pub use self::settings_execution::{
ContainerAccessChoice, ContainerGrantRequest, ContainerRevokeRequest, EnvironmentEntry,
PackageProfileAddRequest, ProfileRemoveRequest, ToolchainProfileAddRequest,
Expand Down
Loading