Pass guildId and meta through settings deep link and diagnostics export IPC.
format-settings-deep-link includes guildId in URL; export-diagnostics-jsonl forwards meta to platform writer. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -731,9 +731,16 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
if (t === 'format-settings-deep-link') {
|
||||
const url = platform.formatSettingsDeepLink({
|
||||
section: msg.section,
|
||||
scope: msg.scope
|
||||
scope: msg.scope,
|
||||
guildId: msg.guildId
|
||||
})
|
||||
send({
|
||||
type: 'settings-deep-link',
|
||||
url,
|
||||
section: msg.section || null,
|
||||
scope: msg.scope || 'user',
|
||||
guildId: msg.guildId || null
|
||||
})
|
||||
send({ type: 'settings-deep-link', url, section: msg.section || null, scope: msg.scope || 'user' })
|
||||
return true
|
||||
}
|
||||
if (t === 'mark-notification-read') {
|
||||
@@ -1381,7 +1388,7 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
return true
|
||||
}
|
||||
if (t === 'export-diagnostics-jsonl') {
|
||||
const out = platform.writeDiagnosticsJsonl(msg.lines || [])
|
||||
const out = platform.writeDiagnosticsJsonl(msg.lines || [], msg.meta || {})
|
||||
send({ type: 'diagnostics-jsonl-exported', ...out })
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user