Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
4b260a8
test(context): pin fail-closed context database guarantees
twoimo Nov 15, 2026
4c9ebbc
style(context): rustfmt src/context
twoimo Nov 15, 2026
243c3c1
refactor(context): delete dead bundle paths and one-caller wrappers
twoimo Nov 15, 2026
ba11071
fix: make every bridge child reachable by global abort
twoimo Nov 15, 2026
d753084
refactor(auto-reply): remove unreferenced constants, methods and helpers
twoimo Nov 15, 2026
12469ab
fix: stop bridge children by process group with a SIGTERM grace
twoimo Nov 15, 2026
0b9df2f
refactor(context): extract schema migration from open_db
twoimo Nov 15, 2026
c8a34c3
fix: keep a running job when its duplicate token is refused
twoimo Nov 15, 2026
f093ce5
fix: reap detached voice session children
twoimo Nov 15, 2026
55076a8
fix: give each cancel-marker write a unique temp name
twoimo Nov 15, 2026
549e3c6
fix: truncate Korean previews on char boundaries
twoimo Nov 15, 2026
bf48fb3
docs(auto-reply): drop dated provenance tags from comments
twoimo Nov 15, 2026
af56b11
fix: stop owned children on app exit without latching the abort
twoimo Nov 15, 2026
1b3f908
ci: run eight more Python test modules and check desktop formatting
twoimo Nov 15, 2026
6719a99
ci: gate releases on clippy --all-targets
twoimo Nov 15, 2026
2ff0fca
docs: match the push checklist to CI
twoimo Nov 15, 2026
f579e1e
refactor(auto-reply): keep user-directive provenance and drop the dea…
twoimo Nov 15, 2026
320631e
fix: stop chat pagination on a repeated or endless cursor
twoimo Nov 15, 2026
c56af90
fix: reject out-of-range LOCO ports from booking and checkin
twoimo Nov 15, 2026
958b5d5
fix(metrics): let shutdown exceptions pass through the metrics side c…
twoimo Nov 15, 2026
7ebed12
fix(supervisor): decide GeekNews-only once and keep db-watch off for it
twoimo Nov 15, 2026
a329381
fix: bound LOCO connects and replies with timeouts
twoimo Nov 15, 2026
705592b
refactor(context): move the test module to tests.rs
twoimo Nov 15, 2026
0d7d687
test(desktop): pin settings wiring, panel boot and snapshot parsing
twoimo Nov 15, 2026
964f2d0
test(scripts): pin DREAM-RSI report envelopes and voice file-pipeline…
twoimo Nov 15, 2026
2e39619
refactor(context): split mod.rs into submodules by domain
twoimo Nov 15, 2026
01b0bdf
fix(supervisor): stop every started child when the supervisor fails
twoimo Nov 15, 2026
49e33cb
refactor(context): move ensure_live_context_schema into store
twoimo Nov 15, 2026
7b693ba
fix: do not refuse voice starts for processes that exited mid-probe
twoimo Nov 15, 2026
f092ebf
chore: rustfmt the desktop bridge process-control changes
twoimo Nov 15, 2026
12f46fc
fix(service): write preflight-skipped.json atomically
twoimo Nov 15, 2026
e2d37e0
refactor(desktop): delete dead exports, CSS rules and an unused boot …
twoimo Nov 15, 2026
b131659
fix(service): sweep owned process groups after their leader exits
twoimo Nov 15, 2026
42bb245
fix: replace state.json atomically
twoimo Nov 15, 2026
d455df0
fix: serialize state.json updates across CLI processes
twoimo Nov 15, 2026
932194e
refactor(desktop): drop the unused clock parameters from the frame math
twoimo Nov 15, 2026
cc20fe3
refactor(scripts): delete dead voice state and a pass-through CLI res…
twoimo Nov 15, 2026
64d8e8d
fix(db-watch): fence a malformed poll cursor instead of replaying the…
twoimo Nov 15, 2026
c92ab8e
fix: stop an id-less catalog room from allowing every send target
twoimo Nov 15, 2026
747eedc
fix(session-monitor): stop asking open(1) to hide Terminal
twoimo Nov 15, 2026
6b71f5b
fix(session-monitor): never script Terminal windows matched only by t…
twoimo Nov 15, 2026
ca9d47c
refactor(dream-rsi): build every paper report from one attempt record
twoimo Nov 15, 2026
3690a6d
refactor(scripts): name the voice frame size and flatten two lifecycl…
twoimo Nov 15, 2026
7d9635d
fix: never reapply a message that may already have been sent
twoimo Nov 15, 2026
e14458e
fix: require a readable empty composer before writing a message
twoimo Nov 15, 2026
eacdf84
fix(ax-send): read an AXValue of "no value" as an empty composer
twoimo Nov 15, 2026
1fca90d
refactor(desktop): name the snapshot parser's steps and drop its casts
twoimo Nov 15, 2026
a214156
refactor(desktop): type the settings labels and name the graph setup …
twoimo Nov 15, 2026
b8b5b65
chore(dev): add CLI help-dump pin and Rust item mover
twoimo Nov 15, 2026
bc1247d
chore(dev): extract and verify main() match arms
twoimo Nov 15, 2026
052a068
chore(dev): keep adjacent items adjacent when moving them
twoimo Nov 15, 2026
32c6454
chore(dev): add a base-vs-new behavior diff for safe CLI paths
twoimo Nov 15, 2026
770a238
refactor(cli): drop pass-through wrappers in main.rs
twoimo Nov 15, 2026
00aa9f5
style(cli): rustfmt main.rs before splitting it
twoimo Nov 15, 2026
b8c7db8
refactor(cli): move context-sync-local into commands::context_sync_local
twoimo Nov 15, 2026
0a56d3c
refactor(cli): move send permission gates next to the commands they g…
twoimo Nov 15, 2026
6059c4a
refactor(cli): lift the local-send worker setup out of main()
twoimo Nov 15, 2026
51cf504
refactor(cli): split auto-reply out of main.rs into commands::auto_reply
twoimo Nov 15, 2026
302b58f
refactor(cli): move the context-* command bodies into commands::context
twoimo Nov 15, 2026
0ddb540
refactor(cli): move the read-only local-* command bodies into command…
twoimo Nov 15, 2026
34acf41
refactor(cli): move the ax-probe body next to ax-read
twoimo Nov 15, 2026
5359412
refactor(cli): name the default context index path once
twoimo Nov 15, 2026
f9d5594
test(cli): move watch, profile, and member tests next to their code
twoimo Nov 15, 2026
417487e
refactor(desktop): share one copy of the JSON and scene helpers
twoimo Nov 15, 2026
abc063b
refactor(desktop): key the pipeline stage weights by PipelineStage
twoimo Nov 15, 2026
11c82ca
docs(comments): drop history narration and a code that is never returned
twoimo Nov 15, 2026
10e9dfe
merge: worktree-agent-a620cd1bdfdac551a into stability-wave1
twoimo Nov 15, 2026
c915b2e
merge: worktree-agent-ac5176814a67df76c into stability-wave1
twoimo Nov 15, 2026
3e4edd3
merge: worktree-agent-a28fcb2888267aa01 into stability-wave1
twoimo Nov 15, 2026
230675b
merge: worktree-agent-abac297fedac2f7ed into stability-wave1
twoimo Nov 15, 2026
3913dac
merge: worktree-agent-af639425e89d89f94 into stability-wave1
twoimo Nov 15, 2026
abcfbbe
merge: worktree-agent-adb1f93bd1a37539c into stability-wave1
twoimo Nov 15, 2026
2b1a65d
merge: worktree-agent-a2d895a85e71165be into stability-wave1
twoimo Nov 15, 2026
05912fb
merge: worktree-agent-a4ca89d4a2d14c4b4 into stability-wave1
twoimo Nov 15, 2026
85ba566
merge: worktree-agent-a98278826eac66433 into stability-wave1
twoimo Nov 15, 2026
53c6a28
test: read moved Rust sources from their new modules
twoimo Nov 15, 2026
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
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ jobs:
with:
python-version: "3.11"

# Only 3 of the 348 tests in tests.test_auto_reply_cli_runtime run here.
# The others fail on a fresh checkout: they need
# ~/Library/Application Support/openkakao/context.sqlite or a model
# server on 127.0.0.1:11234, or they hit "transition queue room path
# mismatch" (2026-11-16).
- name: Run focused local AI tests
run: >-
python3 -m unittest
Expand Down Expand Up @@ -183,6 +188,14 @@ jobs:
tests.test_jarvis_wake_evidence
tests.test_jarvis_browser_runtime
tests.test_jarvis_desktop_render_check
tests.test_ahp_measure_live
tests.test_auto_reply_golden_dataset
tests.test_auto_reply_transition_journal
tests.test_auto_reply_tui
tests.test_jarvis_tool_runtime
tests.test_jarvis_unit3
tests.test_jarvis_voice_runtime
tests.test_local_mlx_gateway

- name: Set up Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -231,6 +244,11 @@ jobs:
OPENKAKAO_TAURI_SOURCE_CHECK: "1"
run: cargo check --manifest-path desktop/src-tauri/Cargo.toml --locked --offline

# Only the desktop crate is rustfmt-clean; the CLI crate is not yet
# (2026-11-16).
- name: Check desktop Rust bridge formatting
run: cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --check

# Every desktop-crate lint is either fixed or carries an in-code reason,
# so this step keeps the bridge free of dead code and accidental
# signatures instead of relying on a local clippy run (2026-09-22).
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ jobs:
- name: Cargo test
run: cargo test --manifest-path $MANIFEST

- name: Lint CLI crate (clippy)
run: cargo clippy --manifest-path $MANIFEST --all-targets -- -D warnings

- name: Cargo release build
run: cargo build --release --manifest-path $MANIFEST

Expand Down
30 changes: 26 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,43 @@ docs: update API endpoint documentation

## Push 전 체크리스트

CI와 동일한 게이트를 로컬에서 먼저 돌려 주세요. `main`과 릴리스 워크플로우 모두 이 세 명령이 통과해야 진행됩니다.
`.github/workflows/ci.yml`과 같은 게이트를 로컬에서 먼저 돌려 주세요. 릴리스 워크플로우는 이 중 CLI 크레이트의 test와 clippy를 다시 돌립니다.

CLI 크레이트:

```bash
cargo fmt --manifest-path Cargo.toml --check
cargo clippy --manifest-path Cargo.toml -- -D warnings
cargo test --manifest-path Cargo.toml
cargo clippy --manifest-path Cargo.toml --all-targets -- -D warnings
sh scripts/test-auto-reply-launchd-artifacts.sh
```

Python 테스트(CI는 Python 3.11). 모듈 목록은 `ci.yml`의 `Run focused local AI tests` 단계가 기준이므로 거기서 그대로 읽어 실행합니다:

```bash
python3 -m unittest $(sed -n '/Run focused local AI tests/,/^$/p' .github/workflows/ci.yml | grep -oE 'tests\.test_[A-Za-z0-9_.]+')
```

Desktop(Tauri) 프런트엔드와 Rust 브리지:

```bash
(cd desktop && npm ci && npm test -- --run && npm run build)
cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --check
cargo fetch --manifest-path desktop/src-tauri/Cargo.toml --locked
OPENKAKAO_TAURI_SOURCE_CHECK=1 cargo test --manifest-path desktop/src-tauri/Cargo.toml --locked --offline
OPENKAKAO_TAURI_SOURCE_CHECK=1 cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --all-targets --locked --offline -- -D warnings
```

CLI 크레이트는 아직 `cargo fmt` 기준으로 정리되지 않아 CI가 `cargo fmt --check`를 돌리지 않습니다. 고친 파일만 포매팅하고, 무관한 파일을 한꺼번에 재포매팅하지 마세요.

`tests.test_auto_reply_menubar`는 저장소에 없는 frozen `.pyc`가 필요해 CI에서 돌지 않습니다. 메뉴 막대 코드를 고쳤다면 baked runtime이 있는 머신에서 `python3 -m unittest tests.test_auto_reply_menubar`를 따로 돌려 주세요.

## 릴리스 절차

1. `CHANGELOG.md`의 `[Unreleased]` 섹션을 새 버전 섹션으로 정리
2. `Cargo.toml`의 `version` 필드 bump (+ `cargo update -p openkakao-cli`로 `Cargo.lock` 반영)
3. Push 전 체크리스트 통과 확인
4. `main`에 커밋·푸시 후 `git tag vX.Y.Z && git push origin vX.Y.Z`
5. 릴리스 워크플로우의 `verify` job이 통과해야 빌드·Homebrew tap 업데이트가 진행됨 — `verify`가 빨갛게 나면 태그만 남고 release는 만들어지지 않으므로, fix 후 버전을 한 단계 올려 재태그할 것 (태그 force-move 금지: v1.1.0 인시던트의 원인)
5. 릴리스 워크플로우의 `macos_build` job(`cargo test`, clippy, release 빌드)이 통과해야 GitHub Release가 게시됨. `macos_build`가 빨갛게 나면 태그만 남고 release는 만들어지지 않으므로, fix 후 버전을 한 단계 올려 재태그할 것 (태그 force-move 금지: v1.1.0 인시던트의 원인)

## 주의사항

Expand Down
14 changes: 12 additions & 2 deletions desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ use tauri_plugin_global_shortcut::{Code, GlobalShortcutExt, Modifiers, Shortcut,

const PANEL_WIDTH: f64 = 276.0;
const VISIBILITY_EVENT: &str = "jarvis://visibility";
// Time a quitting app gives a model swap to roll back on its own.
const APP_EXIT_COOPERATIVE_GRACE: std::time::Duration = std::time::Duration::from_secs(3);

/// Payload for the window visibility event: one boolean, never content.
fn visibility_payload(visible: bool) -> Value {
Expand Down Expand Up @@ -279,8 +281,16 @@ fn main() {
}
_ => {}
})
.run(tauri::generate_context!())
.expect("error while running OpenKakao Jarvis");
.build(tauri::generate_context!())
.expect("error while building OpenKakao Jarvis")
.run(|app, event| {
// Quitting must not orphan a Python child (for example a model
// swap in progress). Stop owned children without latching the abort.
if let tauri::RunEvent::Exit = event {
app.state::<PythonBridge>()
.terminate_children(APP_EXIT_COOPERATIVE_GRACE);
}
});
}

#[cfg(test)]
Expand Down
Loading
Loading