You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ba444a3
Browse filesBrowse the repository at this point in the historyBrowse files
feat(listen): link guest accounts to Hookdeck Inspect
Guest accounts (project type console) were linked to Hookdeck Console
with ?event_id= and ?team_id=, which mean nothing to Hookdeck Inspect.
listen now links guests to Inspect directly:
- Event links go to the event's Source page in Inspect,
<inspect base>/<source id without src_>. The Source is looked up from
the attempt's webhook_id. The link adds ?request=<request_id> when the
attempt carries one, and falls back to Inspect home when the Source is
unknown.
- The home link is the Source page when the session listens to exactly
one Source, otherwise Inspect home. Guest links no longer carry
team_id.
- New optional AttemptBody.RequestID (request_id, omitempty), ready for
when core adds it to the attempt payload.
- New Inspect base URL, default https://inspect.hookdeck.com, which can
be overridden with the hidden --inspect-base flag or inspect_base.
- Every link goes through pkg/listen/links. The compact and interactive
renderers no longer build URLs by hand, and the unused
tui.FormatEventLog is removed.
Dashboard links for non-guest projects are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: pkg/cmd/root.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -318,6 +318,7 @@ var flagNeedsNextArg = map[string]bool{
318
318
"outpost-api-base": true,
319
319
"dashboard-base": true,
320
320
"console-base": true,
321
+
"inspect-base": true,
321
322
"ws-base": true,
322
323
}
323
324
@@ -403,6 +404,9 @@ func init() {
403
404
rootCmd.PersistentFlags().StringVar(&Config.ConsoleBaseURL, "console-base", "", fmt.Sprintf("Sets the web console base URL (default \"%s\")", hookdeck.DefaultConsoleBaseURL))
rootCmd.PersistentFlags().StringVar(&Config.InspectBaseURL, "inspect-base", "", fmt.Sprintf("Sets the Hookdeck Inspect base URL, used for guest links (default \"%s\")", hookdeck.DefaultInspectBaseURL))
0 commit comments