Skip to content

Commit 83b2476

Browse files
committed
Merge remote-tracking branch 'origin/dev' into HEAD
2 parents 9311e70 + 544f1c5 commit 83b2476

13 files changed

Lines changed: 235 additions & 11 deletions

File tree

‎desktop/src-tauri/Cargo.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎desktop/src-tauri/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "opencodex-desktop"
3-
version = "2.79.0"
3+
version = "2.80.0"
44
description = "OpenCodex desktop shell"
55
authors = ["OpenCodex contributors"]
66
license = "MIT"

‎desktop/src-tauri/tauri.conf.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "OpenCodex",
4-
"version": "2.79.0",
4+
"version": "2.80.0",
55
"identifier": "com.opencodex.desktop",
66
"build": {
77
"frontendDist": "../ui",

‎docs-site/src/content/docs/guides/combos.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,11 @@ The decision state is deliberately bounded: up to 500 characters of the current
474474
240-character previous-assistant tail, a 520-character latest-tool-output tail, the tool name, and
475475
boolean image/tool signals may be sent to the selected decision backend. It excludes credentials,
476476
request headers, raw image bytes, tool arguments, encrypted reasoning, and full conversation history.
477-
Use a decision method only for content you are willing to send to that backend. Recognized OpenCodex machine-context
478-
envelopes are removed from all three text samples, but ordinary assistant and tool-output text is
479-
not a secret scanner and may still contain sensitive content. TypeSafe states that Jev is not
477+
Use a decision method only for content you are willing to send to that backend. Recognized Codex machine-context
478+
envelopes and Claude Code `<system-reminder>` blocks are removed from all three text samples before
479+
clipping, so injected reminders do not displace the actual task. The original model request is
480+
unchanged. This is not a secret scanner: ordinary assistant and tool-output text may still contain
481+
sensitive content. TypeSafe states that Jev is not
480482
trained on customer requests, but its terms set no fixed retention period for submitted state and
481483
offer zero data retention only on enterprise plans
482484
([models](https://docs.typesafe.ai/models), [legal](https://docs.typesafe.ai/legal)). TypeSafe

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitkyc08/opencodex",
3-
"version": "2.79.0",
3+
"version": "2.80.0",
44
"description": "Universal provider proxy for OpenAI Codex & Claude Code — use any LLM with Codex CLI/App/SDK and Claude Code",
55
"type": "module",
66
"main": "./bin/package-main.mjs",

‎scripts/test.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ export function createIsolatedTestEnvironment(
8888
// whichever adapter collected the metadata. Naming the file keeps the sandbox
8989
// (git still writes nothing here) while leaving git's own trust decisions intact.
9090
GIT_CONFIG_GLOBAL: baseEnv.GIT_CONFIG_GLOBAL ?? join(homedir(), ".gitconfig"),
91+
// Pin Bun's runtime transpiler cache for the same reason. Bun keeps it under the home
92+
// directory (macOS: ~/Library/Caches/bun/@t@), so a sandboxed HOME/USERPROFILE handed every
93+
// batch, and every fixture that gives its child its own HOME, an empty cache: the first child
94+
// re-transpiled each large module (73 src files are over the 50 KB cache threshold). On a busy
95+
// Windows shard that first child took 10-45 s where later ones took 2-5 s, failing whichever
96+
// timed case happened to spawn it. The cache holds transpiled source only, so sharing it keeps
97+
// the sandbox. An explicit value, including "" or "0" to disable it, is kept as given.
98+
BUN_RUNTIME_TRANSPILER_CACHE_PATH: baseEnv.BUN_RUNTIME_TRANSPILER_CACHE_PATH
99+
?? join(hostTemp, "ocx-test-bun-transpiler-cache"),
91100
HOME: root,
92101
USERPROFILE: root,
93102
OPENCODEX_HOME: opencodexHome,

‎src/combos/jev.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const TOOL_NAME_CHARS = 160;
4747
const VISIBLE_TEXT_CHUNK_CHARS = 16_384;
4848

4949
const ENVELOPE_TAGS = [
50+
"system-reminder",
5051
"codex_internal_context",
5152
"recommended_plugins",
5253
"environment_context",
@@ -302,7 +303,8 @@ function taskWithoutProtectedEnvelopes(text: string): string {
302303
}
303304
} else {
304305
if (stack.length === 0) appendTrimmedRange(visible, "\n", 0, 1);
305-
if (!completedGoal && !goal && tag === "codex_internal_context") {
306+
// A Codex goal quoted inside a Claude reminder is context, never a fallback task.
307+
if (!completedGoal && !goal && tag === "codex_internal_context" && !stack.includes("system-reminder")) {
306308
goal = { sample: emptyTextSample(), pendingWhitespace: emptyTextSample() };
307309
goalDepth = stack.length;
308310
}

‎src/server/messages-native-scope.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ export function nativeMessagesToolScopeDenial(
3636
const definition = tool.definition;
3737
if (typeof definition.name !== "string") { anonymous.push(definition); continue; }
3838
// A temporary replacement keeps the declaration it shadows in scope as well.
39-
definitions.set(definition.name, permanent ? [definition] : [...definitions.get(definition.name) ?? [], definition]);
39+
// These arrays belong to this check, not to the caller's declarations.
40+
const declarations = permanent ? [] : definitions.get(definition.name) ?? [];
41+
declarations.push(definition);
42+
definitions.set(definition.name, declarations);
4043
withdrawn.delete(definition.name);
4144
} else if (tool.type === "tool_reference" && typeof tool.name === "string") {
4245
if (block.type === "tool_removal" && permanent) withdrawn.add(tool.name);

‎structure/data-planes/protocol-paths.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ in such a message are always checked, and only a permanent removal withdraws a d
297297
Ordinary custom schemas, arguments and historical tool
298298
results remain opaque. Provider-only and unrestricted admissions retain their existing scope.
299299
`tests/claude-integration/messages-native-scope.test.ts` covers refusal with zero upstream sends
300-
and byte-preserving allowed tool definitions through both credential lanes.
300+
and byte-preserving allowed tool definitions through both credential lanes. Temporary declarations append to checker-owned lists instead of copying
301+
the accumulated prefix, so collection work is linear in the declarations visited. Permanent
302+
replacement, withdrawal and denied-shadow checks remain unchanged; this is not a request-size
303+
or wall-time guarantee.
301304

302305
`buildAnthropicMessagesPassthroughRequest` in `src/adapters/anthropic/passthrough.ts` builds the
303306
request from that body: the top-level allowlist (`model, messages, system, max_tokens, metadata,

‎structure/ops/cross-platform-ci.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ release that requires Windows proof still dispatches it for the exact publish SH
7272
Test sandboxes keep the runner's `LOCALAPPDATA`, so Windows PowerShell 5.1 children reuse the
7373
image's warm module-analysis cache. Replacing it with a freshly built seed made every child
7474
re-analyze modules and timed out seven shards on the first run of #6670.
75+
The sandbox also pins `BUN_RUNTIME_TRANSPILER_CACHE_PATH` to one shared directory: Bun keeps that cache
76+
under the home directory, so a sandboxed home made the first child of every batch or fixture
77+
re-transpile each large module, 10-45 s on a busy Windows shard against 2-5 s warm.
7578
Startup ACL reads use .NET, never module-autoloaded `Get-Acl`/`Set-Acl`
7679
(`tests/ci-workflows/ci-review-lanes.test.ts` scans `src/`).
7780
Across the jobs, the workflow runs:

0 commit comments

Comments
 (0)