Skip to content

Commit b8f2214

Browse files
authored
Merge pull request #461 from OpenCoven/release/v091-remediation
Prepare v0.9.1 release fixes
2 parents 1fbe8e2 + 6583e9a commit b8f2214

96 files changed

Lines changed: 10388 additions & 1137 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/tui-tests.yml‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,25 @@ concurrency:
2424
group: tui-tests-${{ github.ref }}
2525
cancel-in-progress: true
2626

27+
permissions:
28+
contents: read
29+
2730
env:
2831
CARGO_TERM_COLOR: always
2932

3033
jobs:
3134
tui-tests:
32-
name: Interactive terminal suite
35+
name: Interactive terminal suite (${{ matrix.size }})
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
include:
40+
- size: 80x24
41+
width: 80
42+
height: 24
43+
- size: 120x40
44+
width: 120
45+
height: 40
3346
runs-on: ubuntu-latest
3447
timeout-minutes: 30
3548
steps:
@@ -77,14 +90,16 @@ jobs:
7790
# Fail loudly if tmux is missing instead of silently skipping the
7891
# interactive cases, and persist pane captures for any failure.
7992
REQUIRE_TMUX: '1'
93+
TUI_WIDTH: ${{ matrix.width }}
94+
TUI_HEIGHT: ${{ matrix.height }}
8095
TUI_LOG_DIR: ${{ runner.temp }}/tui-failures
8196
run: bash scripts/tui-tests/run.sh
8297

8398
- name: Upload failure pane captures
8499
if: failure()
85100
uses: actions/upload-artifact@v4
86101
with:
87-
name: tui-failure-captures
102+
name: tui-failure-captures-${{ matrix.size }}
88103
path: ${{ runner.temp }}/tui-failures
89104
if-no-files-found: ignore
90105
retention-days: 14

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
> npm install -g @opencoven/cli
99
> ```
1010
>
11-
> This repository is the **Coven engine** — `coven-code` **v0.9.0**, which `coven` (**`@opencoven/cli` v0.1.1**) auto-installs and checksum-verifies on first run. You no longer install `coven-code` from npm directly. See the [release notes](https://github.com/OpenCoven/coven/blob/main/docs/release-notes-unified-cli.md) and the [merge guide](docs/unification.md).
11+
> This repository is the **Coven engine** — `coven-code` **v0.9.1**. The unified `coven` CLI (`@opencoven/cli`) installs and checksum-verifies its pinned engine version, which may differ from this release. You no longer install `coven-code` from npm directly. See the [release notes](https://github.com/OpenCoven/coven/blob/main/docs/release-notes-unified-cli.md) and the [merge guide](docs/unification.md).
1212
1313
**Coven Code** is an open-source agentic coding TUI built in Rust. It is maintained by [OpenCoven](https://opencoven.ai) as a GPL-3.0 fork of [Claurst](https://github.com/Kuberwastaken/claurst) by Kuber Mehta.
1414
@@ -26,7 +26,7 @@ Terminal coding agent with a rich ratatui TUI: chat forking, memory consolidatio
2626
2727
## Status
2828
29-
> **Beta (v0.9.0).** Core agent, provider routing, and TUI are stable for daily use. Experimental features are flagged below.
29+
> **Beta (v0.9.1).** Core agent, provider routing, and TUI are stable for daily use. Experimental features are flagged below.
3030
3131
Recent highlights:
3232
- **/share** — share sessions via unlisted GitHub Gists `[EXPERIMENTAL]`

‎docs/configuration.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ and verify the effective behavior before relying on a global preference.
5858
Most day-to-day options live inside the `config` object. Provider credentials
5959
live in the `providers` map.
6060

61+
When Coven Code saves the engine-global file, it preserves the JSON values of unknown top-level keys, including keys added by a newer version. This does not guarantee preservation of unknown keys inside `config` or other nested objects. Unknown keys from project settings are ignored and never copied into the global file.
62+
6163
---
6264

6365
## The `config` Object

‎docs/diagnostics.md‎

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,17 @@
11
# CLI diagnostics
22

3-
When the interactive TUI owns terminal stderr, tracing diagnostics go to a private
4-
`logs/session-<UUID>.log` under the engine configuration directory. The transcript
5-
shows the full path at startup, including when resuming a session.
6-
`COVEN_CODE_HOME` overrides the engine directory; otherwise normal Coven home
7-
resolution applies.
3+
Interactive sessions keep a bounded 64 KiB diagnostic tail in memory by default. No diagnostic directory or file is created. Open `/status logs` to read and search recent diagnostics in either Classic or Next; Escape returns to the conversation. The reader is a snapshot of local diagnostics, separate from saved conversation messages and provider input. Earlier bytes are discarded when the tail fills, with an omission count.
84

9-
Files contain timestamps and no ANSI colors. Existing verbosity and `RUST_LOG`
10-
filters still apply. Headless, print, positional-prompt, context and
11-
`--dump-system-prompt` invocations retain stderr logging. Redirecting interactive
12-
stderr also keeps diagnostics on that stream, for example:
5+
To save diagnostics for one interactive session, start Coven Code with `--diagnostics`. Files are written to `logs/session-<UUID>.log` under the engine configuration directory. The terminal shows the path at startup, including when resuming a session. `COVEN_CODE_HOME` overrides the engine directory; otherwise normal Coven home resolution applies. Persistence requires this explicit opt-in on each invocation.
6+
7+
Files contain timestamps and no ANSI colors. Captured control characters are escaped for safe terminal display. Existing verbosity and `RUST_LOG` filters still apply. Headless, print, positional-prompt, context and `--dump-system-prompt` invocations retain stderr logging. Redirecting interactive stderr also keeps diagnostics on that caller-controlled stream while retaining the memory tail, for example:
138

149
```sh
1510
coven-code 2>diagnostics.log
1611
```
1712

18-
Each file is capped at 1 MiB. When the next event would exceed the cap, older
19-
content is discarded and a marker precedes the new output. An individual event
20-
larger than the limit is replaced with an omission marker. At startup, pruning
21-
keeps the ten newest completed logs. Active sessions are locked and preserved;
22-
unrecognized files are left alone. This is a completed-file retention policy,
23-
not a total directory size limit when many sessions are active.
13+
Each opted-in file is capped at 1 MiB. When the next event would exceed the cap, older content is discarded and a marker precedes the new output. An individual event larger than the limit, including after control-character escaping, is replaced with an omission marker. At opted-in startup, pruning keeps the ten newest completed logs. Active sessions are locked and preserved; unrecognized files are left alone. This is a completed-file retention policy, not a total directory size limit when many sessions are active.
2414

25-
On Unix the directory is owner-only (0700), and files are created owner-only
26-
(0600). Windows uses inherited filesystem ACLs. Treat logs as private: debug
27-
messages can include paths and request details; inspect them before sharing.
15+
On Unix the directory is owner-only (0700), and files are created owner-only (0600). Windows uses inherited filesystem ACLs. Treat diagnostics as private: debug messages can include paths and request details; inspect them before copying or sharing them.
2816

29-
Failure to open the log stops startup with its directory in the error, before
30-
terminal setup. A later write failure stops file logging and adds a warning with
31-
the path to the TUI transcript. The file sink never falls back to stderr.
17+
Failure to open an explicitly requested log stops startup with its directory in the error, before terminal setup. A later write failure stops file logging and adds a warning with the path to the terminal. The bounded memory tail remains available through `/status logs`. The file sink never falls back to terminal stderr.

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Coven Code is a high-performance Rust reimplementation of Claude Code — a terminal-native AI coding agent with streaming responses, 40+ built-in tools, 15+ LLM provider integrations, a full ratatui TUI, and an extensible plugin system.
88

9-
**Version:** 0.9.0 (Beta) · **License:** GPL-3.0 · [GitHub](https://github.com/OpenCoven/coven-code)
9+
**Version:** 0.9.1 (Beta) · **License:** GPL-3.0 · [GitHub](https://github.com/OpenCoven/coven-code)
1010

1111
</div>
1212

‎docs/installation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ coven-code --version
121121
Example engine output:
122122

123123
```
124-
coven-code 0.9.0
124+
coven-code 0.9.1
125125
```
126126

127127
Use `command -v coven-code` on Unix or `Get-Command coven-code` in PowerShell to

‎docs/slash-commands.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ Type `/` for contextual suggestions, or open the command palette with Ctrl+K. En
116116
| `/stash` | `/stash <link\|attach>` | Store useful links and attachments |
117117
| `/stash link` | `/stash link [arguments]` | Store and manage links |
118118
| `/stash attach` | `/stash attach [arguments]` | Store and manage attachments |
119-
| `/status` | `/status [doctor]` | Show comprehensive system and session status |
119+
| `/status` | `/status [doctor\|logs]` | Show comprehensive system and session status |
120120
| `/status doctor` | `/status doctor` | Run diagnostic checks |
121+
| `/status logs` | `/status logs` | Read recent diagnostics in the interactive terminal |
121122
| `/update` | `/update <version\|notes>` | Check for updates and download the latest release |
122123
| `/update version` | `/update version` | Show the installed Coven version |
123124
| `/update notes` | `/update notes` | Show recent Coven release notes |

‎docs/src/content/configuration.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export function render() {
4242
4343
<p>Most day-to-day options live inside the <code>config</code> object. Provider credentials live in the <code>providers</code> map.</p>
4444
45+
<p>When Coven Code saves the engine-global file, it preserves the JSON values of unknown top-level keys, including keys added by a newer version. This does not guarantee preservation of unknown keys inside <code>config</code> or other nested objects. Unknown keys from project settings are ignored and never copied into the global file.</p>
46+
4547
<h2>Common <code>config</code> Options</h2>
4648
4749
<h3>Model and Tokens</h3>

‎npm/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencoven/coven-code",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"description": "Coven engine (agentic coding TUI). The unified CLI is @opencoven/cli \u2014 'npm i -g @opencoven/cli'. This package installs the engine binary directly.",
55
"license": "GPL-3.0-only",
66
"repository": {

‎scripts/fixtures/noisy_mcp.py‎

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
"""Owned stdio MCP fixture; all noise and credentials are synthetic."""
2+
import json
3+
import os
4+
import pathlib
5+
import sys
6+
import threading
7+
import time
8+
9+
10+
def main():
11+
root = pathlib.Path(sys.argv[1])
12+
(root / "pid").write_text(str(os.getpid()))
13+
stop = threading.Event()
14+
15+
def noise():
16+
previous = ""
17+
while not stop.wait(0.01):
18+
trigger = root / "trigger"
19+
phase = trigger.read_text() if trigger.exists() else ""
20+
if phase and phase != previous:
21+
previous = phase
22+
if phase == "disconnect":
23+
os._exit(0)
24+
marker = f"MCP-NOISE-{phase}"
25+
hostile = (
26+
marker + "\x1b]52;c;TUNQLUNMSVBCT0FSRA==\x07"
27+
+ "\x1b]0;MCP-PWNED-TITLE\x07\x1b[2J\x1b[H"
28+
+ "\u009b31m\r\b\x00\n"
29+
).encode()
30+
(root / f"noise-{phase}-started").write_text("started")
31+
os.write(2, b"x" * 262144)
32+
# Oversized, unterminated output and a burst exceeding pipe capacity.
33+
for _ in range(128):
34+
os.write(2, b"x" * 8192 + hostile)
35+
if phase == "flood":
36+
(root / "noise-flood-sustained").write_text("started")
37+
while phase == "flood" and not stop.is_set() and trigger.read_text() == phase:
38+
os.write(2, b"x" * 8192 + hostile)
39+
os.write(2, (marker + "-TAIL\n").encode())
40+
(root / f"noise-{phase}-done").write_text("done")
41+
42+
thread = threading.Thread(target=noise, daemon=True)
43+
thread.start()
44+
try:
45+
for line in sys.stdin:
46+
request = json.loads(line)
47+
if "id" not in request:
48+
continue
49+
method = request["method"]
50+
if method == "initialize":
51+
result = {
52+
"protocolVersion": request["params"]["protocolVersion"],
53+
"capabilities": {"tools": {}},
54+
"serverInfo": {"name": "noisy-fixture", "version": "1"},
55+
}
56+
elif method == "tools/list":
57+
result = {"tools": [{"name": "ping", "description": "Local fixture", "inputSchema": {"type": "object"}}]}
58+
(root / "connected").write_text("yes")
59+
elif method == "tools/call":
60+
result = {"content": [{"type": "text", "text": "MCP-PING-OK"}]}
61+
(root / "called").write_text("yes")
62+
elif method == "ping":
63+
result = {}
64+
else:
65+
print(json.dumps({"jsonrpc": "2.0", "id": request["id"], "error": {"code": -32601, "message": "Unknown method"}}), flush=True)
66+
continue
67+
print(json.dumps({"jsonrpc": "2.0", "id": request["id"], "result": result}), flush=True)
68+
finally:
69+
stop.set()
70+
thread.join(timeout=1)
71+
(root / "exited").write_text("yes")
72+
73+
74+
if __name__ == "__main__":
75+
main()

0 commit comments

Comments
 (0)