Repository navigation
대화형 세션에 독립 백그라운드 Run 추가 (/bg, ADR-0094) - #165
Merged
Merged
Conversation
Run 하나가 도는 동안 다른 작업을 하려면 기다리거나 터미널을 하나 더 열어야 했다. runtime은 이미 Run별 lease와 digest 확인 쓰기로 병렬을 허용하므로 REPL/TUI 계층만 바꿨다. - /bg GOAL: 독립 Run을 별도 스레드에서 시작(동시 3개, 목록 32개 보관) - 세션이 이미 허용한 권한만 사용, 새 승인이 필요하면 paused 알림과 /resume 안내 - 입력창이 비었을 때는 모델 전송 동의를 그 자리에서 묻고, Run 중에는 대기열 없이 바로 실행 - /runs, /show ID, /cancel ID: 목록·저장된 답(최대 64 KiB)·경계 취소 - TUI는 매 tick 완료 알림을 입력창 위에 표시, plain REPL은 다음 입력 전에 표시 - /exit 시 도는 Run을 취소하고 최대 10초 대기, durable 상태는 resume 가능 - agy 취소 플래그가 process 전역이라 앞 Run의 Ctrl+C가 백그라운드 호출까지 끊던 문제를 thread-local 분리로 수정 - InteractiveHost.start를 InteractiveLaunch + start_interactive_run으로 분리해 백그라운드와 공유 - 상위 Router(입력마다 모델로 분류)는 보류 검증 - agy Flash Low tmux 실측 - 앞 Run과 병렬 완료(CSV 행 수 2 정답) - 기본 모드 paused(read_approval_required) 뒤 /resume 완료 - 같은 파일 충돌: precondition_conflict 뒤 재시도로 두 줄 모두 남음 - Ctrl+C 분리: 수정본 2/2 완료, 분리 줄을 뺀 대조 빌드 0/2 - 모델 요청 비교 8/8 일치 - Rust 832 통과(4 ignored), Python 192(62 skip), TUI smoke 3개와 first-use smoke 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SonAIengine
added a commit
that referenced
this pull request
Nov 28, 2026
- Cargo·npm 패키지 버전 0.1.0-rc.9 → 0.1.0-rc.10 (10개 파일, Cargo.lock 11개 crate, npm lock) - README·getting-started·npm README의 설치 예시를 rc.10으로 바꿈 - check-third-party-licenses --write로 고지 갱신 - 포함 변경: #164 provider 거절 이유 표시(ADR-0093), #165 백그라운드 Run(ADR-0094) - release preflight PASS, npm 테스트 20개 통과, 공개 문서·workflow 계약 검사 통과 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
대화형 세션에서 지금 돌고 있는 Run과 별개로 독립 Run을 백그라운드에서 돌린다. runtime은 이미 Run별 lease와
expectedDigest확인 쓰기로 병렬 실행을 허용하므로, REPL/TUI 계층만 바꿨다. journal, Run 상태, 모델 요청은 그대로다./bg GOAL: 별도 스레드에서 독립 Run을 시작한다. 동시에 3개까지 돈다.[bg1] paused (...) run-... · /resume run-...알림을 띄우고 멈춘다./bg는 대기열에 들어가지 않고 바로 실행되며, 이때는 모델 권한이allow여야 한다./runs,/show ID,/cancel ID: 목록, 저장된 답, 취소. Run 중에도 바로 실행된다./exit: 도는 백그라운드 Run을 취소하고 최대 10초 기다린 뒤 나간다.검증
gemini-3.8-flash-low, tmux 대화형:/bg(CSV 행 수 세기)를 실행했다. 백그라운드가 먼저 끝나2(정답)를 답했고, 앞 Run도 정상으로 끝났다.paused (read_approval_required)알림 뒤/resume으로 승인하자 답이 나왔다.effect_failed{precondition_conflict}로 남았다. 이후 다시 읽어 쓰면서 두 Run의 줄이 모두 남았다.scripts/diff-model-requests.py --base <rc.9> --head target/debug/xgen결과 8개 사례 모두 차이 0,model requests match.-D warnings와 fmt 통과.한계
/cancel로 바로 끊기지 않는다. 호출이 끝난 뒤 다음 경계에서 멈춘다./show는 세션 메모리에 저장된 답만 보여 준다.🤖 Generated with Claude Code