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,
|
request_id=self.request.request_id,
|
||||||
approved=not is_reject,
|
approved=not is_reject,
|
||||||
button_index=btn_index,
|
button_index=btn_index,
|
||||||
|
step_type=getattr(self.request, 'step_type', ''),
|
||||||
))
|
))
|
||||||
embed = interaction.message.embeds[0] if interaction.message.embeds else None
|
embed = interaction.message.embeds[0] if interaction.message.embeds else None
|
||||||
if embed:
|
if embed:
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ class UserResponse:
|
|||||||
user_input: str = ""
|
user_input: str = ""
|
||||||
timestamp: float = 0
|
timestamp: float = 0
|
||||||
button_index: int = -1 # -1 = legacy (approve/reject), 0+ = specific button index
|
button_index: int = -1 # -1 = legacy (approve/reject), 0+ = specific button index
|
||||||
|
step_type: str = "" # pass through from pending for extension routing
|
||||||
|
|
||||||
|
|
||||||
class BridgeProtocol:
|
class BridgeProtocol:
|
||||||
|
|||||||
@@ -2105,7 +2105,7 @@ async function processResponseFile(filePath) {
|
|||||||
const pendingFile = path.join(pendingDir, `${resp.request_id}.json`);
|
const pendingFile = path.join(pendingDir, `${resp.request_id}.json`);
|
||||||
let sessionId = '';
|
let sessionId = '';
|
||||||
let isDomObserver = false;
|
let isDomObserver = false;
|
||||||
let pendingStepType = '';
|
let pendingStepType = resp.step_type || ''; // from bot's response (new)
|
||||||
let pendingStepIndex = -1;
|
let pendingStepIndex = -1;
|
||||||
if (fs.existsSync(pendingFile)) {
|
if (fs.existsSync(pendingFile)) {
|
||||||
try {
|
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`);
|
const pendingFile = path.join(pendingDir, `${resp.request_id}.json`);
|
||||||
let sessionId = '';
|
let sessionId = '';
|
||||||
let isDomObserver = false;
|
let isDomObserver = false;
|
||||||
let pendingStepType = '';
|
let pendingStepType = resp.step_type || ''; // from bot's response (new)
|
||||||
let pendingStepIndex = -1;
|
let pendingStepIndex = -1;
|
||||||
if (fs.existsSync(pendingFile)) {
|
if (fs.existsSync(pendingFile)) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -4,3 +4,4 @@
|
|||||||
|
|
||||||
## 수정 내역
|
## 수정 내역
|
||||||
- 초기 생성: Accept all 리뷰 바 트리거 테스트
|
- 초기 생성: Accept all 리뷰 바 트리거 테스트
|
||||||
|
- 2차 수정: Diff review 누적 감지 테스트 (14:45)
|
||||||
|
|||||||
Reference in New Issue
Block a user