Skip to content

Commit d05b4fe

Browse files
authored
Merge pull request #35 from semantic-developer/feature/sd-37
compatibility with codex 0.58
2 parents 7170908 + 4ceecc1 commit d05b4fe

File tree

8 files changed

+647
-525
lines changed

8 files changed

+647
-525
lines changed

README.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A cross‑platform desktop UI (Avalonia/.NET 8) for driving the Codex CLI app se
1717
## Requirements
1818

1919
- .NET SDK 8.0+
20-
- Codex CLI installed and on `PATH`
20+
- Codex CLI v0.58.0 or newer installed and on `PATH`
2121
- Verify with: `codex app-server --help`
2222
- No external Git required — uses LibGit2Sharp for repo init/staging/commit
2323

@@ -85,36 +85,36 @@ If you define profiles in `config.toml`, Semantic Developer surfaces them in the
8585
Example `config.toml` profiles:
8686

8787
```toml
88-
[profiles.gpt-5-high]
89-
model = "gpt-5"
88+
[profiles.gpt-5.1-high]
89+
model = "gpt-5.1"
9090
model_provider = "openai"
9191
approval_policy = "never"
9292
model_reasoning_effort = "high"
9393
model_reasoning_summary = "auto"
9494

95-
[profiles.gpt-5-medium]
96-
model = "gpt-5"
95+
[profiles.gpt-5.1-medium]
96+
model = "gpt-5.1"
9797
model_provider = "openai"
9898
approval_policy = "never"
9999
model_reasoning_effort = "medium"
100100
model_reasoning_summary = "auto"
101101

102-
[profiles.gpt-5-low]
103-
model = "gpt-5"
102+
[profiles.gpt-5.1-low]
103+
model = "gpt-5.1"
104104
model_provider = "openai"
105105
approval_policy = "never"
106106
model_reasoning_effort = "low"
107107
model_reasoning_summary = "auto"
108108

109-
[profiles.gpt-5-codex-high]
110-
model = "gpt-5-codex"
109+
[profiles.gpt-5.1-codex-high]
110+
model = "gpt-5.1-codex"
111111
model_provider = "openai"
112112
approval_policy = "never"
113113
model_reasoning_effort = "high"
114114
model_reasoning_summary = "auto"
115115

116-
[profiles.gpt-5-codex-medium]
117-
model = "gpt-5-codex"
116+
[profiles.gpt-5.1-codex-medium]
117+
model = "gpt-5.1-codex"
118118
model_provider = "openai"
119119
approval_policy = "never"
120120
model_reasoning_effort = "medium"
@@ -183,11 +183,13 @@ Notes
183183
## Conversation & Protocol Behavior
184184

185185
- Always uses the Codex app server: the app starts the CLI with `codex app-server`.
186-
- User input is wrapped as a protocol `Submission` with a new `id` and an `op` payload:
187-
- Defaults to `user_input` with `items: [{ type: "text", text: "..." }]`.
188-
- When the app infers that a full turn is required, it sends `user_turn` and includes
189-
`cwd`, `approval_policy` (defaults to `on-request`), `sandbox_policy` (defaults to
190-
`workspace-write`), optional `model`, and default reasoning fields.
186+
- Session lifecycle uses the v0.58 thread/turn RPCs exclusively:
187+
- When a session begins (or resumes), the app issues `thread/start` / `thread/resume`
188+
with `approvalPolicy="onRequest"` and `sandbox="workspaceWrite"` along with the
189+
selected `model`, `cwd`, and any reasoning overrides.
190+
- Each user message maps to a `turn/start` call that sends the active `threadId`,
191+
a text `input` block, the desired reasoning effort, and a `sandboxPolicy` object
192+
(`{ mode: "workspaceWrite", networkAccess: <bool> }`).
191193
- Auto‑approval: when the CLI emits an `exec_approval_request` or `apply_patch_approval_request`,
192194
the app automatically approves the request. There is no setting to toggle this.
193195

SemanticDeveloper/Installers/Linux/build_deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ APP_PROJ="$ROOT/SemanticDeveloper/SemanticDeveloper.csproj"
88
PUBLISH_DIR="$SCRIPT_DIR/out/publish"
99
PKG_ROOT="$SCRIPT_DIR/pkgroot"
1010
DIST_DIR="$SCRIPT_DIR/dist"
11-
VERSION="1.0.8"
11+
VERSION="1.0.9"
1212
ARCH="amd64"
1313
if [[ "$RID" == "linux-arm64" ]]; then ARCH="arm64"; fi
1414

Binary file not shown.

SemanticDeveloper/SemanticDeveloper/SemanticDeveloper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
77
<ApplicationManifest>app.manifest</ApplicationManifest>
88
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
9-
<Version>1.0.8</Version>
9+
<Version>1.0.9</Version>
1010
<Copyright>2025 Stainless Designer LLC</Copyright>
1111
</PropertyGroup>
1212

SemanticDeveloper/SemanticDeveloper/Services/CodexCliService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static string Quote(string s)
461461
return prefix + joined;
462462
}
463463

464-
private static IEnumerable<string> SplitArgsRespectingQuotes(string input)
464+
internal static IEnumerable<string> SplitArgsRespectingQuotes(string input)
465465
{
466466
var result = new List<string>();
467467
if (string.IsNullOrWhiteSpace(input)) return result;

SemanticDeveloper/SemanticDeveloper/Services/ProtoHelper.cs

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)