From 050271e2a90b3965b870793916037d9018ef4851 Mon Sep 17 00:00:00 2001 From: lacvet Date: Sun, 5 Apr 2026 17:18:56 +0900 Subject: [PATCH] =?UTF-8?q?AX=20Agent=20=EB=8C=80=EA=B8=B0=EC=97=B4=20?= =?UTF-8?q?=EC=A0=81=EC=9E=AC=20=EA=B2=BD=EB=A1=9C=20=EA=B3=B5=ED=86=B5?= =?UTF-8?q?=ED=99=94=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - retry, follow-up, branch follow-up, steering 요청이 모두 EnqueueDraftRequest helper를 타도록 정리 - 현재 대화 갱신과 세션 반영 지점을 queue 생성 helper 한 군데로 모아 이후 정책 변경 시 일관성을 높임 - README와 DEVELOPMENT 이력에 claw-code parity 기준 진행 상황을 반영 - 검증: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\ 경고 0 / 오류 0 --- README.md | 4 ++ docs/DEVELOPMENT.md | 5 ++ src/AxCopilot/Views/ChatWindow.xaml.cs | 63 ++++++++++---------------- 3 files changed, 33 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index fe5ac53..31af8c9 100644 --- a/README.md +++ b/README.md @@ -930,6 +930,10 @@ ow + toggle 시각 언어로 통일했습니다. - Cowork/Code 후속 큐 요약은 더 `claw-code`처럼 최소 노출로 바꿨습니다. [ChatWindow.xaml.cs](/E:/AX%20Copilot%20-%20Codex/src/AxCopilot/Views/ChatWindow.xaml.cs) 의 compact queue 요약은 이제 기본적으로 `실행 / 다음 / 실패`만 표시하고, `보류`, `완료` 배지는 `상세 보기`를 펼쳤을 때만 보입니다. - 검증: `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\` 경고 0 / 오류 0 - 업데이트: 2026-04-05 20:15 (KST) +- 재시도/후속 큐 적재 경로도 한 축으로 정리했습니다. [ChatWindow.xaml.cs](/E:/AX%20Copilot%20-%20Codex/src/AxCopilot/Views/ChatWindow.xaml.cs) 에 `EnqueueDraftRequest(...)` helper를 추가해 `조정 요청`, `후속 작업`, `분기 후속 작업`, `재시도 직접 실행`이 모두 같은 대기열 생성 경로를 타도록 맞췄습니다. +- 이 정리로 `retry / follow-up / branch follow-up / steering` 큐 생성 시 현재 대화 교체, 세션 반영, 후속 queue UI 갱신 지점이 하나로 모였고, 이후 queue 정책 조정도 같은 helper 한 군데만 손보면 되게 됐습니다. +- 검증: `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify\\ -p:IntermediateOutputPath=obj\\verify\\` 경고 0 / 오류 0 +- 업데이트: 2026-04-05 20:21 (KST) --- diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index a1a9296..fedf957 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -4695,3 +4695,8 @@ ow + toggle ?쒓컖 ?몄뼱濡??ㅼ떆 ?뺣젹?덈떎. - 이번 묶음 후 추정 parity는 `core engine 90% / main transcript UI 96% / Cowork·Code runtime UX 95% / internal settings 92% / overall 95%` 정도로 재평가했습니다. - 검증: `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\verify\ -p:IntermediateOutputPath=obj\verify\` 경고 0 / 오류 0 - 업데이트: 2026-04-05 20:15 (KST) +- 대기열 생성 경로도 더 엔진 친화적으로 공통화했습니다. [ChatWindow.xaml.cs](/E:/AX%20Copilot%20-%20Codex/src/AxCopilot/Views/ChatWindow.xaml.cs) 에 `EnqueueDraftRequest(...)` helper를 추가하고, `QueueComposerDraft(...)`, `EnqueueFollowUpFromRun(...)`, `BranchConversationFromRun(...)`, `RetryLastUserMessageFromConversation()` 이 모두 같은 적재 경로를 타게 바꿨습니다. +- 이번 정리로 재시도/후속 작업/분기 후속 작업이 더 이상 각자 `session.EnqueueDraft(...)` 를 따로 만지지 않고, 대화 갱신과 current conversation 반영도 한 helper에 모였습니다. 남은 차이는 queue 실행 후처리와 compact 이후 자동 다음 턴의 event polish 쪽입니다. +- 이번 묶음 후 추정 parity는 `core engine 91% / main transcript UI 96% / Cowork·Code runtime UX 95% / internal settings 92% / overall 95%` 정도로 재평가했습니다. +- 검증: `dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\verify\ -p:IntermediateOutputPath=obj\verify\` 경고 0 / 오류 0 +- 업데이트: 2026-04-05 20:21 (KST) diff --git a/src/AxCopilot/Views/ChatWindow.xaml.cs b/src/AxCopilot/Views/ChatWindow.xaml.cs index 4341709..c897058 100644 --- a/src/AxCopilot/Views/ChatWindow.xaml.cs +++ b/src/AxCopilot/Views/ChatWindow.xaml.cs @@ -19550,20 +19550,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi HideSlashChip(restoreText: false); ClearPromptCardPlaceholder(); - DraftQueueItem? queuedItem = null; - lock (_convLock) - { - var session = _appState.ChatSession; - if (session != null) - _currentConversation = (queuedItem = session.EnqueueDraft( - _activeTab, - text, - priority, - _storage, - InferDraftKind(text, explicitKind))) != null - ? session.CurrentConversation - : _currentConversation; - } + var queuedItem = EnqueueDraftRequest(text, priority, explicitKind); InputBox.Clear(); InputBox.Focus(); @@ -19590,6 +19577,26 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi ShowToast(toast); } + private DraftQueueItem? EnqueueDraftRequest(string text, string priority, string? explicitKind = null) + { + DraftQueueItem? queuedItem = null; + lock (_convLock) + { + var session = _appState.ChatSession; + if (session != null) + _currentConversation = (queuedItem = session.EnqueueDraft( + _activeTab, + text, + priority, + _storage, + InferDraftKind(text, explicitKind))) != null + ? session.CurrentConversation + : _currentConversation; + } + + return queuedItem; + } + // ─── 헬퍼 ───────────────────────────────────────────────────────────── private Popup? _taskSummaryPopup; private UIElement? _taskSummaryTarget; @@ -21062,15 +21069,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi private void EnqueueFollowUpFromRun(AppStateService.AgentRunState run) { var prompt = BuildFollowUpPromptFromRun(run); - - lock (_convLock) - { - var session = _appState.ChatSession; - if (session != null) - _currentConversation = session.EnqueueDraft(_activeTab, prompt, "next", _storage, "followup") != null - ? session.CurrentConversation - : _currentConversation; - } + EnqueueDraftRequest(prompt, "next", "followup"); RefreshDraftQueueUi(); ShowToast("후속 작업이 대기열에 추가되었습니다."); @@ -21116,14 +21115,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi run.RunId); var prompt = BuildFollowUpPromptFromRun(run); - lock (_convLock) - { - var session = _appState.ChatSession; - if (session != null) - _currentConversation = session.EnqueueDraft(_activeTab, prompt, "next", _storage, "followup") != null - ? session.CurrentConversation - : _currentConversation; - } + EnqueueDraftRequest(prompt, "next", "followup"); RefreshDraftQueueUi(); ShowToast("새 분기 대화가 생성되고 후속 작업이 대기열에 추가되었습니다."); @@ -21145,14 +21137,7 @@ private static (string icon, string label, string bgHex, string fgHex) GetDecisi if (_isStreaming) { - lock (_convLock) - { - var session = ChatSession; - if (session != null) - _currentConversation = session.EnqueueDraft(_activeTab, lastUserMessage, "now", _storage, "direct") != null - ? session.CurrentConversation - : _currentConversation; - } + EnqueueDraftRequest(lastUserMessage, "now", "direct"); RefreshDraftQueueUi(); ShowToast("현재 작업 뒤에 같은 요청을 다시 실행하도록 대기열에 추가했습니다.");