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
4 changes: 2 additions & 2 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Audit dependencies
shell: bash
run: |
if [[ "$REQUESTED_VERSION" != "0.2.81" ]]; then
if [[ "$REQUESTED_VERSION" != "0.2.82" ]]; then
pnpm audit --audit-level low
exit
fi
Expand All @@ -144,7 +144,7 @@ jobs:
.github_advisory_id == "GHSA-fc5q-39xc-vjpf" and
.module_name == "picomatch")
' "$report" > /dev/null; then
echo "::warning::Cyrus 0.2.81: allowing the development-only picomatch advisory GHSA-fc5q-39xc-vjpf for this release."
echo "::warning::Cyrus 0.2.82: allowing the development-only picomatch advisory GHSA-fc5q-39xc-vjpf for this release."
exit 0
fi
cat "$report"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This changelog documents internal development changes, refactors, tooling update

## [Unreleased]

## [0.2.82] - 2026-11-18

### Changed

- Record the Slack and Zulip release test drive and allow the development-only picomatch audit exception for this version. ([#1613](https://github.com/cyrusagents/cyrus/pull/1613))

## [0.2.81] - 2026-11-18

### Changed
Expand Down
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,68 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.2.82] - 2026-11-18

### Fixed

- Apply Automatic tool approval to Claude and Codex sessions started or resumed from Slack and Zulip. ([#1613](https://github.com/cyrusagents/cyrus/pull/1613))

### Packages

#### cyrus-cloudflare-tunnel-client
- cyrus-cloudflare-tunnel-client@0.2.82

#### cyrus-mcp-tools
- cyrus-mcp-tools@0.2.82

#### cyrus-core
- cyrus-core@0.2.82

#### cyrus-claude-runner
- cyrus-claude-runner@0.2.82

#### cyrus-config-updater
- cyrus-config-updater@0.2.82

#### cyrus-linear-event-transport
- cyrus-linear-event-transport@0.2.82

#### cyrus-github-event-transport
- cyrus-github-event-transport@0.2.82

#### cyrus-gitlab-event-transport
- cyrus-gitlab-event-transport@0.2.82

#### cyrus-slack-event-transport
- cyrus-slack-event-transport@0.2.82

#### cyrus-zulip-event-transport
- cyrus-zulip-event-transport@0.2.82

#### cyrus-plane-event-transport
- cyrus-plane-event-transport@0.2.82

#### cyrus-simple-agent-runner
- cyrus-simple-agent-runner@0.2.82

#### cyrus-opencode-runner
- cyrus-opencode-runner@0.2.82

#### cyrus-codex-runner
- cyrus-codex-runner@0.2.82

#### cyrus-cursor-runner
- cyrus-cursor-runner@0.2.82

#### cyrus-gemini-runner
- cyrus-gemini-runner@0.2.82

#### cyrus-edge-worker
- cyrus-edge-worker@0.2.82

#### cyrus-ai
- cyrus-ai@0.2.82

## [0.2.81] - 2026-11-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-ai",
"version": "0.2.81",
"version": "0.2.82",
"description": "AI-powered Linear issue automation using Claude",
"main": "dist/src/app.js",
"types": "dist/src/app.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Chat automatic tool approval

**Date:** 2026-11-18
**Runtime code tested:** `9829f155a8a4e65fb2b16d3c47e87d282122b087`

The runtime change since v0.2.81 applies the existing approval mode to Slack and Zulip through their shared runner factory. The remaining release payload is package metadata and the version-scoped development audit exception.

Built the edge worker and ran isolated F1 servers with the automatic and allowlist configurations. A temporary F1 fixture selected the mode and hosted a local stub for the Zulip messaging API. All provider sessions ran on the built runtime using a disposable repository and separate chat workspaces.

- Sent synthetic Slack mentions to `/cli/dispatch-chat` and polled `/cli/chat-thread`. Claude reported `permissionMode: "auto"` and replied on both a new thread and its next turn. The allowlist control reported `permissionMode: "default"` and replied.
- In a separate Automatic Slack thread, Claude created a scratch file with Write, removed it with Bash, and reported success. A direct check found the file absent from the isolated workspace.
- Posted two local mention payloads to the normal `/zulip-webhook` route. Codex returned the expected markers to the local Zulip API stub for both the first turn and the resumed thread. The runner factory regression also verifies that Codex receives Automatic and retains its configured tool list for MCP scope.
- Focused edge-worker suites passed 141 tests. No live Slack or Zulip workspace was contacted. The temporary servers were shut down and the untracked fixture was removed from the worktree.
6 changes: 3 additions & 3 deletions docs/CONFIG_FILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ profile and uses the corresponding native Codex mode.
### `toolApprovalMode`

Controls how tool calls are approved in Claude and Codex issue sessions (Linear,
GitHub, GitLab). Accepted values:
GitHub, GitLab) and chat sessions (Slack, Zulip). Accepted values:

- `allowlist` (default when omitted): existing behavior. The resolved allowed-tool
lists pre-approve tools.
Expand Down Expand Up @@ -610,10 +610,10 @@ which MCP tools are enabled), and sandbox settings. These stay on the allowlist:

- sessions whose tools come from a prompt-specific policy (`labelPrompts.<type>` or
`promptDefaults.<type>` `allowedTools`/`disallowedTools`, e.g. a `readOnly` scoper)
- chat sessions (Slack, Zulip)
- Gemini, Cursor, and OpenCode runners

Config reloads affect newly constructed runners. Pre-warmed Claude sessions
Config reloads affect newly constructed runners, including resumed chat sessions.
An active chat runner keeps its mode until it is recreated. Pre-warmed Claude sessions
(`CYRUS_ENABLE_WARM_SESSIONS`) are not used in `auto` mode: prewarming is skipped,
existing warm instances are closed when the mode switches to `auto`, and auto
sessions always start a fresh, fully protected query. Codex runs auto and
Expand Down
2 changes: 1 addition & 1 deletion packages/claude-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-claude-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "Claude CLI execution wrapper for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare-tunnel-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-cloudflare-tunnel-client",
"version": "0.2.81",
"version": "0.2.82",
"description": "Cloudflare tunnel client for receiving config updates and webhooks from cyrus-hosted",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/codex-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-codex-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "Codex CLI process wrapper for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/config-updater/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-config-updater",
"version": "0.2.81",
"version": "0.2.82",
"description": "Configuration update handlers for Cyrus agent",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-core",
"version": "0.2.81",
"version": "0.2.82",
"description": "Core business logic for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/cursor-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-cursor-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "Cursor Agent CLI process wrapper for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/edge-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-edge-worker",
"version": "0.2.81",
"version": "0.2.82",
"description": "Unified edge worker for processing Linear issues with Claude",
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions packages/edge-worker/src/EdgeWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,11 @@ export class EdgeWorker extends EventEmitter {
chatRunnerType ?? this.runnerSelectionService.getDefaultRunner();
return this.createRunnerForType(runnerType, {
...config,
// Read the current mode for new and resumed chat runners.
...(this.config.toolApprovalMode === "auto" &&
(runnerType === "claude" || runnerType === "codex") && {
toolApprovalMode: "auto" as const,
}),
model: this.getDefaultModelForRunner(runnerType),
fallbackModel: this.getDefaultFallbackModelForRunner(runnerType),
});
Expand Down
30 changes: 30 additions & 0 deletions packages/edge-worker/test/EdgeWorker.runner-selection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,36 @@ describe("EdgeWorker - Runner Selection Based on Labels", () => {
expect(capturedRunnerConfig.sandbox).toBe(mode ?? "workspace-write");
});

it.each([
["claude", "auto", "auto"],
["codex", "auto", "auto"],
["claude", "allowlist", undefined],
["codex", undefined, undefined],
["gemini", "auto", undefined],
] as const)("uses %s with configured %s tool approvals for chat", (runnerType, toolApprovalMode, expected) => {
const worker = new EdgeWorker({ ...mockConfig, toolApprovalMode });
const provider = {
getDefaultRepository: () => undefined,
getRepositoryPaths: () => [],
getDefaultLinearWorkspaceId: () => undefined,
};
const deps = (worker as any).buildChatSessionHandlerDeps(
provider,
() => undefined,
);
deps.createRunner(
{
workingDirectory: "/test/chat",
allowedTools: ["Read"],
resumeSessionId: "chat-session-id",
},
runnerType,
);
expect(capturedRunnerConfig.toolApprovalMode).toBe(expected);
expect(capturedRunnerConfig.allowedTools).toEqual(["Read"]);
expect(capturedRunnerConfig.resumeSessionId).toBe("chat-session-id");
});

let edgeWorker: EdgeWorker;
let mockConfig: EdgeWorkerConfig;
let mockLinearClient: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/gemini-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-gemini-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "Gemini CLI process spawning and management for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/github-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-github-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "GitHub event transport for receiving and verifying forwarded GitHub webhooks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/gitlab-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-gitlab-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "GitLab event transport for receiving and verifying forwarded GitLab webhooks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/linear-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-linear-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "Linear event transport for receiving and verifying Linear webhooks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-mcp-tools",
"version": "0.2.81",
"version": "0.2.82",
"description": "Runner-neutral MCP tool servers for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-opencode-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "OpenCode CLI process wrapper for Cyrus",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/plane-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-plane-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "Plane event transport: Plane agent runs as Cyrus agent sessions",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/simple-agent-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-simple-agent-runner",
"version": "0.2.81",
"version": "0.2.82",
"description": "Simple agent runner for enumerated responses",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/slack-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-slack-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "Slack event transport for receiving and verifying forwarded Slack webhooks",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/zulip-event-transport/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cyrus-zulip-event-transport",
"version": "0.2.81",
"version": "0.2.82",
"description": "Zulip event transport for receiving and verifying Zulip outgoing webhooks",
"repository": {
"type": "git",
Expand Down
Loading