fix: pass step_type through response file for diff_review routing
This commit is contained in:
1
bot.py
1
bot.py
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
@@ -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 {
|
||||
|
||||
@@ -4,3 +4,4 @@
|
||||
|
||||
## 수정 내역
|
||||
- 초기 생성: Accept all 리뷰 바 트리거 테스트
|
||||
- 2차 수정: Diff review 누적 감지 테스트 (14:45)
|
||||
|
||||
Reference in New Issue
Block a user