Address PR #1218 code review feedback
- Extract duplicated extractMethod into shared historyUtils.ts - Include response content in search (was accidentally dropped) - Show Parameters instead of raw Request in expanded view; gate on params existing so parameterless requests don't show empty block Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f104e6e21a
commit
986659ae8f
1 changed files with 24 additions and 25 deletions
8
clients/web/src/components/groups/historyUtils.ts
Normal file
8
clients/web/src/components/groups/historyUtils.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import type { MessageEntry } from "../../../../../core/mcp/types.js";
|
||||
|
||||
export function extractMethod(entry: MessageEntry): string {
|
||||
if ("method" in entry.message) {
|
||||
return entry.message.method;
|
||||
}
|
||||
return "response";
|
||||
}
|
||||
Loading…
Reference in a new issue