Skip to content

Repeat same questions, Lose core context, cause hallucinations #307871

@seongpil0948

Description

@seongpil0948

Type: Bug

I am encountering a recurring issue within the workspace (covering FE, AI, and Helm charts).
Whenever I submit the initial question, the compaction task triggers immediately, resulting in a total loss of session context. Despite this loss of continuity, the process repeats incessantly, leading to continuous token consumption without providing meaningful results.

Chat Log

User: workspace and repos: shop-ai frontend

Regarding to ToolConfirmation(refer: /Users/2309-n0015/Code/Open/adk-go/examples/toolconfirmation/main.go related code) “도구 전송중” state aleady activated and preventing any input interact

it appears that  components/prompt-input-modal.tsx is replaced by components/tool-confirmation-modal.tsx these should be intergrated to MCP Schema based input 

and i must identify and trouble shoot of variety error and issues

and it cause and appeal before submit modal {"time":"2026-04-05T14:03:24.459409+09:00","level":"ERROR","msg":"sonic API request failed","method":"POST","path":"/order/api/v1/bo/order","params":"{\"itemInPage\":10,\"page\":1,\"searchKey\":\"PNM\",\"searchVal\":\"약국테스트\"}","duration_ms":30001,"error":"sonicclient: POST /order/api/v1/bo/order: Post \"https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","trace_id":"14dad42424982a01a07bcc856a35e4e7","span_id":"a7ce68bb0e14806a"} 에러 발생

요청하신 대로 불필요한 `text-delta`와 반복되는 `data-session`, `data-progress` 이벤트를 제외하고, 주요 워크플로우의 흐름을 파악할 수 있도록 데이터 타입(`type`)을 기준으로 핵심 이벤트(Raw Log)만 시간순으로 추려 정리했습니다.

### 1. 스트림 연결 및 세션 초기화 (`data-session`, `data-notification`)
```json
{"type":"data-session","data":{"appName":"orchestrator","sessionId":"sess-f4a8cd2c-2d800129","userId":"f4a8cd2c-e0a1-70bc-b652-fecdb7b45b49"}}
{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"running"}}
{"type":"data-notification","data":{"level":"info","message":"Connected to ADK stream. Waiting for model output.","source":"bff","stageId":"adk.stream"}}

2. 도메인 컨텍스트 로딩 (orchestrator.domain)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Retrieving domain knowledge.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"running"}}
{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Domain context ready.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"completed"}}

3. 병렬 리서치 수행 및 도구 호출 (orchestrator.research, data-tool-call)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Running all research agents in parallel.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"running"}}

// 첫 번째 도구 호출: 주문 검색 시도
{"type":"data-tool-call","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","args":{"search_key":"PNM","search_val":"약국테스트"},"agentName":"sonic_agent"}}

// 첫 번째 도구 응답: API 타임아웃 에러 발생
{"type":"data-tool-response","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","response":{"error":"sonic API error: sonicclient: POST /order/api/v1/bo/order: Post \"https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"},"agentName":"sonic_agent"}}

// 두 번째 도구 호출: 주문 상세 조회 시도
{"type":"data-tool-call","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","args":{"order_num":"PO1017594808"},"agentName":"sonic_agent"}}

// 두 번째 도구 응답: 명시적 승인(Human-in-the-loop) 요구 및 거부 에러
{"type":"data-confirmation","data":{"callId":"adk-d4255bae-94ed-4eca-97e0-271d2b255660","hint":"Please approve or reject the tool call sonic_order_detail()...","originalToolName":"sonic_order_detail","originalArgs":{"order_num":"PO1017594808"}}}
{"type":"data-tool-response","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","error":"error tool \"sonic_order_detail\" requires confirmation, please approve or reject","agentName":"sonic_agent"}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Research complete.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"completed"}}

4. 에이전트별 토큰 사용량 집계 (data-usage)

(각 에이전트들의 병렬 리서치 과정에서 발생한 토큰량)

{"type":"data-usage","data":{"agentName":"domain_agent","promptTokens":10924,"candidatesTokens":867,"totalTokens":11791}}
{"type":"data-usage","data":{"agentName":"schema_agent","promptTokens":13555,"candidatesTokens":819,"totalTokens":14374}}
{"type":"data-usage","data":{"agentName":"knowledge_agent","promptTokens":75891,"candidatesTokens":190,"totalTokens":76081}}
{"type":"data-usage","data":{"agentName":"project_agent","promptTokens":9194,"candidatesTokens":517,"totalTokens":9711}}
{"type":"data-usage","data":{"agentName":"code_agent","promptTokens":54220,"candidatesTokens":254,"totalTokens":54474}}
{"type":"data-usage","data":{"agentName":"clickhouse_agent","promptTokens":11905,"candidatesTokens":661,"totalTokens":12566}}
{"type":"data-usage","data":{"agentName":"postgres_agent","promptTokens":39561,"candidatesTokens":673,"totalTokens":40234}}
{"type":"data-usage","data":{"agentName":"sonic_agent","promptTokens":13555,"candidatesTokens":90,"totalTokens":13645}} // (도구 에러 이후)

5. 결과 합성 및 최종 응답 생성 (orchestrator.synthesis, data-artifact)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Combining grounded results into a final answer.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"running"}}

{"type":"text-start","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}
// ... (text-delta 이벤트 생략) ...
{"type":"text-end","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}

{"type":"data-usage","data":{"agentName":"context_synthesis_agent","promptTokens":34124,"candidatesTokens":2438,"totalTokens":36562}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Final answer ready.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"completed"}}

// 최종 마크다운 응답 문서 아티팩트
{"type":"data-artifact","data":{"id":"orchestrator.final-response","kind":"document","mimeType":"text/plain","status":"referenced","summary":"# 회원 1000000200 (약국테스트) 주문내역 조회 결과\n\n이전 대화에서 이미 동일한 회원의 주문내역이 조회되어 있으며, 해당 ...","title":"Grounded answer"}}

6. 스트림 종료 (finish)

{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"completed"}}
{"type":"data-notification","data":{"level":"success","message":"Stream finished successfully.","source":"bff","stageId":"adk.stream"}}
{"type":"finish"}
[DONE]

GitHub Copilot: 안녕하세요! Shop AI 워크스페이스(shop-ai, shop-ai-agents, shop-ai-chart, adk-go)에서 작업을 도와드리겠습니다.

어떤 작업을 진행하시겠습니까? 예를 들면:

  • Frontend (shop-ai): HeroUI v3 컴포넌트, AI SDK 스트리밍, BFF 라우트, 테스트
  • Backend (shop-ai-agents): ADK-Go 에이전트, MCP 툴, Bedrock 모델, 오케스트레이터
  • Helm Chart (shop-ai-chart): 배포 설정, 환경 변수, 템플릿
  • ADK-Go (adk-go): 오픈소스 ADK 코드 분석/디버깅

작업 내용을 말씀해 주세요!

User: shop-ai, shop-ai-agents

GitHub Copilot: What task would you like me to help with in shop-ai and shop-ai-agents? You're currently viewing prompt-input-modal.tsx — is there something specific you'd like to change or fix there?

User: please resolve below issues

workspace and repos: shop-ai frontend

Regarding to ToolConfirmation(refer: /Users/2309-n0015/Code/Open/adk-go/examples/toolconfirmation/main.go related code) “도구 전송중” state aleady activated and preventing any input interact

it appears that components/prompt-input-modal.tsx is replaced by components/tool-confirmation-modal.tsx these should be intergrated to MCP Schema based input

and i must identify and trouble shoot of variety error and issues

and it cause and appeal before submit modal {"time":"2026-04-05T14:03:24.459409+09:00","level":"ERROR","msg":"sonic API request failed","method":"POST","path":"/order/api/v1/bo/order","params":"{"itemInPage":10,"page":1,"searchKey":"PNM","searchVal":"약국테스트"}","duration_ms":30001,"error":"sonicclient: POST /order/api/v1/bo/order: Post "https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","trace_id":"14dad42424982a01a07bcc856a35e4e7","span_id":"a7ce68bb0e14806a"} 에러 발생

요청하신 대로 불필요한 text-delta와 반복되는 data-session, data-progress 이벤트를 제외하고, 주요 워크플로우의 흐름을 파악할 수 있도록 데이터 타입(type)을 기준으로 핵심 이벤트(Raw Log)만 시간순으로 추려 정리했습니다.

1. 스트림 연결 및 세션 초기화 (data-session, data-notification)

{"type":"data-session","data":{"appName":"orchestrator","sessionId":"sess-f4a8cd2c-2d800129","userId":"f4a8cd2c-e0a1-70bc-b652-fecdb7b45b49"}}
{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"running"}}
{"type":"data-notification","data":{"level":"info","message":"Connected to ADK stream. Waiting for model output.","source":"bff","stageId":"adk.stream"}}

2. 도메인 컨텍스트 로딩 (orchestrator.domain)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Retrieving domain knowledge.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"running"}}
{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Domain context ready.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"completed"}}

3. 병렬 리서치 수행 및 도구 호출 (orchestrator.research, data-tool-call)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Running all research agents in parallel.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"running"}}

// 첫 번째 도구 호출: 주문 검색 시도
{"type":"data-tool-call","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","args":{"search_key":"PNM","search_val":"약국테스트"},"agentName":"sonic_agent"}}

// 첫 번째 도구 응답: API 타임아웃 에러 발생
{"type":"data-tool-response","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","response":{"error":"sonic API error: sonicclient: POST /order/api/v1/bo/order: Post \"https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"},"agentName":"sonic_agent"}}

// 두 번째 도구 호출: 주문 상세 조회 시도
{"type":"data-tool-call","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","args":{"order_num":"PO1017594808"},"agentName":"sonic_agent"}}

// 두 번째 도구 응답: 명시적 승인(Human-in-the-loop) 요구 및 거부 에러
{"type":"data-confirmation","data":{"callId":"adk-d4255bae-94ed-4eca-97e0-271d2b255660","hint":"Please approve or reject the tool call sonic_order_detail()...","originalToolName":"sonic_order_detail","originalArgs":{"order_num":"PO1017594808"}}}
{"type":"data-tool-response","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","error":"error tool \"sonic_order_detail\" requires confirmation, please approve or reject","agentName":"sonic_agent"}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Research complete.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"completed"}}

4. 에이전트별 토큰 사용량 집계 (data-usage)

(각 에이전트들의 병렬 리서치 과정에서 발생한 토큰량)

{"type":"data-usage","data":{"agentName":"domain_agent","promptTokens":10924,"candidatesTokens":867,"totalTokens":11791}}
{"type":"data-usage","data":{"agentName":"schema_agent","promptTokens":13555,"candidatesTokens":819,"totalTokens":14374}}
{"type":"data-usage","data":{"agentName":"knowledge_agent","promptTokens":75891,"candidatesTokens":190,"totalTokens":76081}}
{"type":"data-usage","data":{"agentName":"project_agent","promptTokens":9194,"candidatesTokens":517,"totalTokens":9711}}
{"type":"data-usage","data":{"agentName":"code_agent","promptTokens":54220,"candidatesTokens":254,"totalTokens":54474}}
{"type":"data-usage","data":{"agentName":"clickhouse_agent","promptTokens":11905,"candidatesTokens":661,"totalTokens":12566}}
{"type":"data-usage","data":{"agentName":"postgres_agent","promptTokens":39561,"candidatesTokens":673,"totalTokens":40234}}
{"type":"data-usage","data":{"agentName":"sonic_agent","promptTokens":13555,"candidatesTokens":90,"totalTokens":13645}} // (도구 에러 이후)

5. 결과 합성 및 최종 응답 생성 (orchestrator.synthesis, data-artifact)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Combining grounded results into a final answer.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"running"}}

{"type":"text-start","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}
// ... (text-delta 이벤트 생략) ...
{"type":"text-end","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}

{"type":"data-usage","data":{"agentName":"context_synthesis_agent","promptTokens":34124,"candidatesTokens":2438,"totalTokens":36562}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Final answer ready.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"completed"}}

// 최종 마크다운 응답 문서 아티팩트
{"type":"data-artifact","data":{"id":"orchestrator.final-response","kind":"document","mimeType":"text/plain","status":"referenced","summary":"# 회원 1000000200 (약국테스트) 주문내역 조회 결과\n\n이전 대화에서 이미 동일한 회원의 주문내역이 조회되어 있으며, 해당 ...","title":"Grounded answer"}}

6. 스트림 종료 (finish)

{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"completed"}}
{"type":"data-notification","data":{"level":"success","message":"Stream finished successfully.","source":"bff","stageId":"adk.stream"}}
{"type":"finish"}
[DONE]

GitHub Copilot: Compacted conversationI can see you have a multi-repo workspace with shop-ai (Next.js frontend), shop-ai-agents (ADK-Go backend), shop-ai-chart (Helm chart), and adk-go (ADK framework).

How can I help you today? For example:

  • Frontend — UI components, streaming, ADK integration, tests
  • Backend — Agent logic, MCP tools, Bedrock models, orchestration
  • Infrastructure — Helm chart, deployment, OpenTelemetry
  • Cross-repo — Smart prompt flows, API contracts, schema changes

What would you like to work on?

User: Cross-repo

GitHub Copilot: What cross-repo task would you like to tackle? Common scenarios:

  1. MCP Tool Schema — Add/modify a Sonic tool in shop-ai-agents and update the frontend rendering in shop-ai (enum, date fields, Select/DatePicker)
  2. API Contract — Change /api/adk/invoke request/response shape or add new BFF routes
  3. New MCP Tool — Register a tool in mcpsublauncher, add InputSchema metadata, and wire up frontend catalog + modal
  4. Recommend Card → Tool — Update recommend_agent JSON output (toolName/inputIntent) and frontend card rendering
  5. Smart Prompt Flow — Fix/extend prompt-input-modal.tsxtool_sonic_schema.go interplay (you have this file open)
  6. App Discovery — Add a new ADK app and wire it through /api/adk/apps + agent-catalog-panel

Which area, or describe what you need?

User: please resolve below issues

Regarding to ToolConfirmation(refer: /Users/2309-n0015/Code/Open/adk-go/examples/toolconfirmation/main.go related code) “도구 전송중” state aleady activated and preventing any input interact

it appears that components/prompt-input-modal.tsx is replaced by components/tool-confirmation-modal.tsx these should be intergrated to MCP Schema based input

and i must identify and trouble shoot of variety error and issues

and it cause and appeal before submit modal {"time":"2026-04-05T14:03:24.459409+09:00","level":"ERROR","msg":"sonic API request failed","method":"POST","path":"/order/api/v1/bo/order","params":"{"itemInPage":10,"page":1,"searchKey":"PNM","searchVal":"약국테스트"}","duration_ms":30001,"error":"sonicclient: POST /order/api/v1/bo/order: Post "https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","trace_id":"14dad42424982a01a07bcc856a35e4e7","span_id":"a7ce68bb0e14806a"} 에러 발생

요청하신 대로 불필요한 text-delta와 반복되는 data-session, data-progress 이벤트를 제외하고, 주요 워크플로우의 흐름을 파악할 수 있도록 데이터 타입(type)을 기준으로 핵심 이벤트(Raw Log)만 시간순으로 추려 정리했습니다.

1. 스트림 연결 및 세션 초기화 (data-session, data-notification)

{"type":"data-session","data":{"appName":"orchestrator","sessionId":"sess-f4a8cd2c-2d800129","userId":"f4a8cd2c-e0a1-70bc-b652-fecdb7b45b49"}}
{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"running"}}
{"type":"data-notification","data":{"level":"info","message":"Connected to ADK stream. Waiting for model output.","source":"bff","stageId":"adk.stream"}}

2. 도메인 컨텍스트 로딩 (orchestrator.domain)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Retrieving domain knowledge.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"running"}}
{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Domain context ready.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"completed"}}

3. 병렬 리서치 수행 및 도구 호출 (orchestrator.research, data-tool-call)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Running all research agents in parallel.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"running"}}

// 첫 번째 도구 호출: 주문 검색 시도
{"type":"data-tool-call","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","args":{"search_key":"PNM","search_val":"약국테스트"},"agentName":"sonic_agent"}}

// 첫 번째 도구 응답: API 타임아웃 에러 발생
{"type":"data-tool-response","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","response":{"error":"sonic API error: sonicclient: POST /order/api/v1/bo/order: Post \"https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"},"agentName":"sonic_agent"}}

// 두 번째 도구 호출: 주문 상세 조회 시도
{"type":"data-tool-call","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","args":{"order_num":"PO1017594808"},"agentName":"sonic_agent"}}

// 두 번째 도구 응답: 명시적 승인(Human-in-the-loop) 요구 및 거부 에러
{"type":"data-confirmation","data":{"callId":"adk-d4255bae-94ed-4eca-97e0-271d2b255660","hint":"Please approve or reject the tool call sonic_order_detail()...","originalToolName":"sonic_order_detail","originalArgs":{"order_num":"PO1017594808"}}}
{"type":"data-tool-response","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","error":"error tool \"sonic_order_detail\" requires confirmation, please approve or reject","agentName":"sonic_agent"}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Research complete.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"completed"}}

4. 에이전트별 토큰 사용량 집계 (data-usage)

(각 에이전트들의 병렬 리서치 과정에서 발생한 토큰량)

{"type":"data-usage","data":{"agentName":"domain_agent","promptTokens":10924,"candidatesTokens":867,"totalTokens":11791}}
{"type":"data-usage","data":{"agentName":"schema_agent","promptTokens":13555,"candidatesTokens":819,"totalTokens":14374}}
{"type":"data-usage","data":{"agentName":"knowledge_agent","promptTokens":75891,"candidatesTokens":190,"totalTokens":76081}}
{"type":"data-usage","data":{"agentName":"project_agent","promptTokens":9194,"candidatesTokens":517,"totalTokens":9711}}
{"type":"data-usage","data":{"agentName":"code_agent","promptTokens":54220,"candidatesTokens":254,"totalTokens":54474}}
{"type":"data-usage","data":{"agentName":"clickhouse_agent","promptTokens":11905,"candidatesTokens":661,"totalTokens":12566}}
{"type":"data-usage","data":{"agentName":"postgres_agent","promptTokens":39561,"candidatesTokens":673,"totalTokens":40234}}
{"type":"data-usage","data":{"agentName":"sonic_agent","promptTokens":13555,"candidatesTokens":90,"totalTokens":13645}} // (도구 에러 이후)

5. 결과 합성 및 최종 응답 생성 (orchestrator.synthesis, data-artifact)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Combining grounded results into a final answer.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"running"}}

{"type":"text-start","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}
// ... (text-delta 이벤트 생략) ...
{"type":"text-end","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}

{"type":"data-usage","data":{"agentName":"context_synthesis_agent","promptTokens":34124,"candidatesTokens":2438,"totalTokens":36562}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Final answer ready.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"completed"}}

// 최종 마크다운 응답 문서 아티팩트
{"type":"data-artifact","data":{"id":"orchestrator.final-response","kind":"document","mimeType":"text/plain","status":"referenced","summary":"# 회원 1000000200 (약국테스트) 주문내역 조회 결과\n\n이전 대화에서 이미 동일한 회원의 주문내역이 조회되어 있으며, 해당 ...","title":"Grounded answer"}}

6. 스트림 종료 (finish)

{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"completed"}}
{"type":"data-notification","data":{"level":"success","message":"Stream finished successfully.","source":"bff","stageId":"adk.stream"}}
{"type":"finish"}
[DONE]

GitHub Copilot: Compacted conversation

User: hey stop compacting

please resolve below issues

Regarding to ToolConfirmation(refer: /Users/2309-n0015/Code/Open/adk-go/examples/toolconfirmation/main.go related code) “도구 전송중” state aleady activated and preventing any input interact

it appears that components/prompt-input-modal.tsx is replaced by components/tool-confirmation-modal.tsx these should be intergrated to MCP Schema based input

and i must identify and trouble shoot of variety error and issues

and it cause and appeal before submit modal {"time":"2026-04-05T14:03:24.459409+09:00","level":"ERROR","msg":"sonic API request failed","method":"POST","path":"/order/api/v1/bo/order","params":"{"itemInPage":10,"page":1,"searchKey":"PNM","searchVal":"약국테스트"}","duration_ms":30001,"error":"sonicclient: POST /order/api/v1/bo/order: Post "https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","trace_id":"14dad42424982a01a07bcc856a35e4e7","span_id":"a7ce68bb0e14806a"} 에러 발생

요청하신 대로 불필요한 text-delta와 반복되는 data-session, data-progress 이벤트를 제외하고, 주요 워크플로우의 흐름을 파악할 수 있도록 데이터 타입(type)을 기준으로 핵심 이벤트(Raw Log)만 시간순으로 추려 정리했습니다.

1. 스트림 연결 및 세션 초기화 (data-session, data-notification)

{"type":"data-session","data":{"appName":"orchestrator","sessionId":"sess-f4a8cd2c-2d800129","userId":"f4a8cd2c-e0a1-70bc-b652-fecdb7b45b49"}}
{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"running"}}
{"type":"data-notification","data":{"level":"info","message":"Connected to ADK stream. Waiting for model output.","source":"bff","stageId":"adk.stream"}}

2. 도메인 컨텍스트 로딩 (orchestrator.domain)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Retrieving domain knowledge.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"running"}}
{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Domain context ready.","id":"orchestrator.domain","label":"Loading domain context","order":10,"scope":"workflow","state":"completed"}}

3. 병렬 리서치 수행 및 도구 호출 (orchestrator.research, data-tool-call)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Running all research agents in parallel.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"running"}}

// 첫 번째 도구 호출: 주문 검색 시도
{"type":"data-tool-call","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","args":{"search_key":"PNM","search_val":"약국테스트"},"agentName":"sonic_agent"}}

// 첫 번째 도구 응답: API 타임아웃 에러 발생
{"type":"data-tool-response","data":{"callId":"tooluse_aPQTlzNQvIAcQ4OyJ81W3V","toolName":"sonic_order_search","response":{"error":"sonic API error: sonicclient: POST /order/api/v1/bo/order: Post \"https://dev-sonic-boapi.shop.co.kr/order/api/v1/bo/order\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)"},"agentName":"sonic_agent"}}

// 두 번째 도구 호출: 주문 상세 조회 시도
{"type":"data-tool-call","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","args":{"order_num":"PO1017594808"},"agentName":"sonic_agent"}}

// 두 번째 도구 응답: 명시적 승인(Human-in-the-loop) 요구 및 거부 에러
{"type":"data-confirmation","data":{"callId":"adk-d4255bae-94ed-4eca-97e0-271d2b255660","hint":"Please approve or reject the tool call sonic_order_detail()...","originalToolName":"sonic_order_detail","originalArgs":{"order_num":"PO1017594808"}}}
{"type":"data-tool-response","data":{"callId":"tooluse_Y3JwVtSA5xgp3RD9USYWg5","toolName":"sonic_order_detail","error":"error tool \"sonic_order_detail\" requires confirmation, please approve or reject","agentName":"sonic_agent"}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Research complete.","id":"orchestrator.research","label":"Parallel research","order":20,"scope":"workflow","state":"completed"}}

4. 에이전트별 토큰 사용량 집계 (data-usage)

(각 에이전트들의 병렬 리서치 과정에서 발생한 토큰량)

{"type":"data-usage","data":{"agentName":"domain_agent","promptTokens":10924,"candidatesTokens":867,"totalTokens":11791}}
{"type":"data-usage","data":{"agentName":"schema_agent","promptTokens":13555,"candidatesTokens":819,"totalTokens":14374}}
{"type":"data-usage","data":{"agentName":"knowledge_agent","promptTokens":75891,"candidatesTokens":190,"totalTokens":76081}}
{"type":"data-usage","data":{"agentName":"project_agent","promptTokens":9194,"candidatesTokens":517,"totalTokens":9711}}
{"type":"data-usage","data":{"agentName":"code_agent","promptTokens":54220,"candidatesTokens":254,"totalTokens":54474}}
{"type":"data-usage","data":{"agentName":"clickhouse_agent","promptTokens":11905,"candidatesTokens":661,"totalTokens":12566}}
{"type":"data-usage","data":{"agentName":"postgres_agent","promptTokens":39561,"candidatesTokens":673,"totalTokens":40234}}
{"type":"data-usage","data":{"agentName":"sonic_agent","promptTokens":13555,"candidatesTokens":90,"totalTokens":13645}} // (도구 에러 이후)

5. 결과 합성 및 최종 응답 생성 (orchestrator.synthesis, data-artifact)

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Combining grounded results into a final answer.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"running"}}

{"type":"text-start","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}
// ... (text-delta 이벤트 생략) ...
{"type":"text-end","id":"9e60d829-692f-405a-b7ee-7d99a39d3d47"}

{"type":"data-usage","data":{"agentName":"context_synthesis_agent","promptTokens":34124,"candidatesTokens":2438,"totalTokens":36562}}

{"type":"data-stage","data":{"agentName":"orchestrator","detail":"Final answer ready.","id":"orchestrator.synthesis","label":"Synthesizing grounded answer","order":30,"scope":"workflow","state":"completed"}}

// 최종 마크다운 응답 문서 아티팩트
{"type":"data-artifact","data":{"id":"orchestrator.final-response","kind":"document","mimeType":"text/plain","status":"referenced","summary":"# 회원 1000000200 (약국테스트) 주문내역 조회 결과\n\n이전 대화에서 이미 동일한 회원의 주문내역이 조회되어 있으며, 해당 ...","title":"Grounded answer"}}

6. 스트림 종료 (finish)

{"type":"data-stage","data":{"id":"adk.stream","label":"ADK stream connected","scope":"workflow","state":"completed"}}
{"type":"data-notification","data":{"level":"success","message":"Stream finished successfully.","source":"bff","stageId":"adk.stream"}}
{"type":"finish"}
[DONE]


GitHub Copilot: Compacted conversation

Extension version: 0.43.2026040304
VS Code version: Code - Insiders 1.115.0-insider (Universal) (3d70aab9a4ed407832e43584ac7a661be08e2d74, 2026-04-03T09:58:58-07:00)
OS version: Darwin arm64 25.3.0
Modes:

<details><summary>Logs</summary>
<pre>
Trace: Resolving chat model
Trace: Processing intent
Trace: Resolving chat model
Trace: Processed intent
Trace: Resolving chat model
Trace: Resolving chat model
Trace: Resolving chat model
Debug: AgentIntent: rendering with budget=109305 (baseBudget: 127997, toolTokens: 6546, totalTools: 141, nonDeferredTools: 22), summarizationEnabled=true
Debug: [Agent] budget exceeded(No lowest priority node found (path: v4 -> o8 -> Rqe -> Byt -> i8 -> 1)), triggering summarization
Info: [ConversationHistorySummarizer] [full] summarization prompt rendered in 2ms.
Warning: Tool click_element failed validation: object has unsupported top-level schema keyword 'oneOf'
Warning: Tool drag_element failed validation: object has unsupported top-level schema keyword 'allOf'
Warning: Tool hover_element failed validation: object has unsupported top-level schema keyword 'oneOf'
Warning: Tool run_playwright_code failed validation: object has unsupported top-level schema keyword 'oneOf'
Warning: Tool type_in_page failed validation: object has unsupported top-level schema keyword 'oneOf'
Debug: modelMaxPromptTokens 109305
Debug: modelMaxResponseTokens 32000
Debug: chat model claude-sonnet-4.6
Info: ccreq:4b809bff.copilotmd | cancelled | claude-sonnet-4.6 | 5147ms | [summarizeConversationHistory-full]
Info: [ConversationHistorySummarizer] [full] Summarization request failed. canceled network request aborted
Error: Canceled: Canceled (at tsx element v4 > o8)
	at dxe.handleSummarizationResponse (/Users/2309-n0015/.vscode-insiders/extensions/github.copilot-chat-0.43.2026040304/dist/extension.js:1845:5686)
	at dxe.getSummary (/Users/2309-n0015/.vscode-insiders/extensions/github.copilot-chat-0.43.2026040304/dist/extension.js:1845:5316)
	at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
	at async dxe.getSummaryWithFallback (/Users/2309-n0015/.vscode-insiders/extensions/github.copilot-chat-0.43.2026040304/dist/extension.js:1845:2676): [Agent] summarization failed
Debug: [Agent] summarization failed (error), rendering without summarization
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: Resolving chat model
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [CopilotCLI] Found 1 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [CopilotCLI] Found 1 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: false, focused: true.
Debug: [CopilotCLI] Found 1 JSONL sessions and 0 legacy sessions
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Debug: [getAllSessions] Fetching sessions for nwo=google/adk-go, open=true
Debug: [getAllSessions] Got 0 sessions for nwo=google/adk-go
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Trace: [CopilotCLI] [DIFF] getActiveDiffByTab: tab is not a diff tab
Debug: Related Information: Index not loaded yet triggering background calculation, returning 1ms
Debug: Related Information: Index not loaded yet triggering background calculation, returning 0ms
Debug: Related Information: Index not loaded yet triggering background calculation, returning 0ms
Debug: Related Information: Index not loaded yet triggering background calculation, returning 0ms
Debug: Embeddings for commandEmbeddings calculated in 4212ms
</pre>
</details>
<details><summary>Request IDs</summary>
<pre>
4a22f460-646c-4c94-837d-46f7516cccad
9bfd06bc-f25f-46e2-84eb-07e78cbba9f4
ef5b72d2-bf50-4628-8378-7083cd081299
3a65a2cb-e79b-4f31-996f-deff3f66003d
b01ae286-2d45-4752-9ec9-53673a327ae3
91685f1d-0706-4a35-8131-10566002a191
59910008-662f-4522-90c0-e771b444e57f
442f573c-afc5-4e09-afe2-76178f66ceed
af19dc40-455c-4515-b5c9-f0420d050473
</pre>
</details><details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Apple M3 Pro (11 x 2400)|
|GPU Status|2d_canvas: enabled<br>GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M3 Pro, Version 26.3.1 (a) (Build 25D771280a))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.3.1 *ACTIVE*<br>Machine model name: Mac<br>Machine model version: 15.6<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: enabled_on<br>trees_in_viz: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|5, 5, 5|
|Memory (System)|18.00GB (0.12GB free)|
|Process Argv|--crash-reporter-id 2bb28346-7c50-4640-bbc1-4612e4817462|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>

vsliv368:30146709
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1cf:31399617
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
bj468946:31457056
use-responses-api:31390341
ddidtcf:31398485
je187915:31401257
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31445440
c0683394:31481635
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31488136
cp_cls_c_1081:31454833
conptydll_true:31485575
ia-use-proxy-models-svc:31446143
e9c30283:31453065
test_treatment2:31471001
g_63ac8346:31489385
idci7584:31454084
nes_chat_context_disabled:31451402
e3e4d672:31454087
showingstats:31457201
ei9d7968:31462942
534a6447:31478742
hg17d649:31455236
nes-extended-on:31455475
jc933416:31462667
89g7j272:31480197
hhf17803:31462392
t-some:31466503
7e187181:31482583
cpptoolsoff-v2:31475362
i2gc6536:31472020
1g3cj959:31486771
h08i8180_copy:31475366
ec1eg703:31488002
client_tst_t:31486874
po_split_t:31488387
ddid_c:31478205
file_logging_enabled:31485059
bjc72774_agent_sandbox:31488290
fixed-ctrl-prompt-cache:31487637
pro_large_t:31484703
41e7a136_t:31485218
f5b8g904_t:31489326


</details>

<!-- generated by issue reporter -->

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions