mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Merge branch 'main' of https://github.com/just-every/code into main
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
> [!TIP]
|
||||
> We're constantly improving Code! This page documents the core changes. You can also check our [releases page](https://github.com/just-every/code/releases) for additional information.
|
||||
|
||||
## [0.2.107] - 2025-09-09
|
||||
|
||||
- Core: Fix planning crash on UTF-8 boundary when previewing streamed text. (daa76709)
|
||||
- Stability: Use char-safe slicing for last 800 chars to prevent panics. (daa76709)
|
||||
|
||||
## [0.2.106] - 2025-09-09
|
||||
|
||||
- CLI/Preview: save downloads under ~/.code/bin by default; suffix binaries with PR id. (3bebc2d1)
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@openai/codex",
|
||||
"version": "0.2.106",
|
||||
"version": "0.2.107",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@openai/codex",
|
||||
"version": "0.2.106",
|
||||
"version": "0.2.107",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@vscode/ripgrep": "^1.15.14"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@just-every/code",
|
||||
"version": "0.2.106",
|
||||
"version": "0.2.107",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Lightweight coding agent that runs in your terminal - fork of OpenAI Codex",
|
||||
"bin": {
|
||||
@@ -32,10 +32,10 @@
|
||||
"prettier": "^3.3.3"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@just-every/code-darwin-arm64": "0.2.106",
|
||||
"@just-every/code-darwin-x64": "0.2.106",
|
||||
"@just-every/code-linux-x64-musl": "0.2.106",
|
||||
"@just-every/code-linux-arm64-musl": "0.2.106",
|
||||
"@just-every/code-win32-x64": "0.2.106"
|
||||
"@just-every/code-darwin-arm64": "0.2.107",
|
||||
"@just-every/code-darwin-x64": "0.2.107",
|
||||
"@just-every/code-linux-x64-musl": "0.2.107",
|
||||
"@just-every/code-linux-arm64-musl": "0.2.107",
|
||||
"@just-every/code-win32-x64": "0.2.107"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2363,14 +2363,34 @@ async fn run_turn(
|
||||
"[EPHEMERAL:RETRY_HINT]\nPrevious attempt aborted mid-stream. Continue without repeating.\n",
|
||||
);
|
||||
if !sp.partial_reasoning_summary.is_empty() {
|
||||
let preview = &sp.partial_reasoning_summary;
|
||||
let preview = if preview.len() > 800 { &preview[preview.len()-800..] } else { preview };
|
||||
hint.push_str(&format!("Last reasoning summary fragment:\n{}\n\n", preview));
|
||||
let s = &sp.partial_reasoning_summary;
|
||||
// Take the last 800 characters, respecting UTF-8 boundaries
|
||||
let start_idx = if s.chars().count() > 800 {
|
||||
s.char_indices()
|
||||
.rev()
|
||||
.nth(800 - 1)
|
||||
.map(|(i, _)| i)
|
||||
.unwrap_or(0)
|
||||
} else {
|
||||
0
|
||||
};
|
||||
let tail = &s[start_idx..];
|
||||
hint.push_str(&format!("Last reasoning summary fragment:\n{}\n\n", tail));
|
||||
}
|
||||
if !sp.partial_assistant_text.is_empty() {
|
||||
let preview = &sp.partial_assistant_text;
|
||||
let preview = if preview.len() > 800 { &preview[preview.len()-800..] } else { preview };
|
||||
hint.push_str(&format!("Last assistant text fragment:\n{}\n", preview));
|
||||
let s = &sp.partial_assistant_text;
|
||||
// Take the last 800 characters, respecting UTF-8 boundaries
|
||||
let start_idx = if s.chars().count() > 800 {
|
||||
s.char_indices()
|
||||
.rev()
|
||||
.nth(800 - 1)
|
||||
.map(|(i, _)| i)
|
||||
.unwrap_or(0)
|
||||
} else {
|
||||
0
|
||||
};
|
||||
let tail = &s[start_idx..];
|
||||
hint.push_str(&format!("Last assistant text fragment:\n{}\n", tail));
|
||||
}
|
||||
attempt_input.push(ResponseItem::Message {
|
||||
id: None,
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
## @just-every/code v0.2.106
|
||||
## @just-every/code v0.2.107
|
||||
|
||||
This release improves CLI preview UX and stabilizes preview builds.
|
||||
This release fixes a planning crash and improves runtime stability.
|
||||
|
||||
### Changes
|
||||
- CLI/Preview: save downloads under ~/.code/bin by default; suffix binaries with PR id.
|
||||
- CLI/Preview: run preview binary directly (no --help) for simpler testing.
|
||||
- Preview build: use gh -R and upload only files; avoid .git dependency.
|
||||
- Core: Fix planning crash on UTF-8 boundary when previewing streamed text.
|
||||
- Stability: Use char-safe slicing for last 800 chars to prevent panics.
|
||||
|
||||
### Install
|
||||
```
|
||||
@@ -13,4 +12,4 @@ npm install -g @just-every/code@latest
|
||||
code
|
||||
```
|
||||
|
||||
Compare: https://github.com/just-every/code/compare/v0.2.105...v0.2.106
|
||||
Compare: https://github.com/just-every/code/compare/v0.2.106...v0.2.107
|
||||
|
||||
Reference in New Issue
Block a user