mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
debug: add logging to diagnose chat protocol issue
Add console logging to: - chat command argParser to see input args and parsed result - ChatViewer to see received props This will help diagnose why 'undefined protocol' error appears when opening chat via command or event menu.
This commit is contained in:
@@ -437,6 +437,10 @@ export function ChatViewer({
|
||||
customTitle,
|
||||
headerPrefix,
|
||||
}: ChatViewerProps) {
|
||||
console.log("[ChatViewer] Received props:", {
|
||||
protocol,
|
||||
identifier: identifier?.type,
|
||||
});
|
||||
const { addWindow } = useGrimoire();
|
||||
|
||||
// Get active account with signing capability
|
||||
|
||||
@@ -580,7 +580,12 @@ export const manPages: Record<string, ManPageEntry> = {
|
||||
appId: "chat",
|
||||
category: "Nostr",
|
||||
argParser: async (args: string[]) => {
|
||||
console.log("[chat argParser] Input args:", args);
|
||||
const result = parseChatCommand(args);
|
||||
console.log("[chat argParser] Parsed result:", {
|
||||
protocol: result.protocol,
|
||||
identifier: result.identifier,
|
||||
});
|
||||
return {
|
||||
protocol: result.protocol,
|
||||
identifier: result.identifier,
|
||||
|
||||
Reference in New Issue
Block a user