fix: pass step_type through response file for diff_review routing

This commit is contained in:
2026-03-10 15:02:24 +09:00
parent 8fbf6bf6b7
commit 7982263fcd
6 changed files with 6 additions and 3 deletions

1
bot.py
View File

@@ -86,6 +86,7 @@ class ApprovalView(discord.ui.View):
request_id=self.request.request_id,
approved=not is_reject,
button_index=btn_index,
step_type=getattr(self.request, 'step_type', ''),
))
embed = interaction.message.embeds[0] if interaction.message.embeds else None
if embed:

View File

@@ -54,6 +54,7 @@ class UserResponse:
user_input: str = ""
timestamp: float = 0
button_index: int = -1 # -1 = legacy (approve/reject), 0+ = specific button index
step_type: str = "" # pass through from pending for extension routing
class BridgeProtocol:

View File

@@ -2105,7 +2105,7 @@ async function processResponseFile(filePath) {
const pendingFile = path.join(pendingDir, `${resp.request_id}.json`);
let sessionId = '';
let isDomObserver = false;
let pendingStepType = '';
let pendingStepType = resp.step_type || ''; // from bot's response (new)
let pendingStepIndex = -1;
if (fs.existsSync(pendingFile)) {
try {

File diff suppressed because one or more lines are too long

View File

@@ -2060,7 +2060,7 @@ async function processResponseFile(filePath: string) {
const pendingFile = path.join(pendingDir, `${resp.request_id}.json`);
let sessionId = '';
let isDomObserver = false;
let pendingStepType = '';
let pendingStepType = resp.step_type || ''; // from bot's response (new)
let pendingStepIndex = -1;
if (fs.existsSync(pendingFile)) {
try {

View File

@@ -4,3 +4,4 @@
## 수정 내역
- 초기 생성: Accept all 리뷰 바 트리거 테스트
- 2차 수정: Diff review 누적 감지 테스트 (14:45)