Skip to content

Conversation

alexbouchardd
Copy link
Contributor

No description provided.

@alexbouchardd
Copy link
Contributor Author

@claude review

@alexbouchardd alexbouchardd changed the title feat: Add listen --filter param for session filtering feat: Add interactive listen and --filter param for session filtering Oct 19, 2025
@alexbouchardd alexbouchardd changed the title feat: Add interactive listen and --filter param for session filtering feat: Add interactive listen and --filter-x param for session filtering Oct 19, 2025
@alexbouchardd alexbouchardd changed the base branch from feat/listen-keyboard-shortcut to main October 19, 2025 15:10
Copy link
Collaborator

@alexluong alexluong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did a light test against staging, confirmed the filter behavior is working as expected

TargetURL *url.URL
Sources []*hookdecksdk.Source
Connections []*hookdecksdk.Connection
Filters interface{} // Session filters (stored as interface{} to avoid circular dependency)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the circular dependency?

@alexluong alexluong merged commit ea2ced9 into main Oct 21, 2025
6 checks passed
@alexluong alexluong deleted the feat/filters branch October 21, 2025 02:55
Comment on lines +298 to +304
if activeCount > warningThreshold && !p.maxConnWarned {
p.maxConnWarned = true
p.renderer.OnConnectionWarning(activeCount, p.transport.MaxConnsPerHost)
} else if activeCount < resetThreshold && p.maxConnWarned {
// Reset warning flag when load decreases
p.maxConnWarned = false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexbouchardd My version warned whne approaching max connections https://github.com/hookdeck/hookdeck-cli/pull/153/files?new_files_changed=true&diff=unified#diff-b41d02f71c670ff801d99892d32ef6dd36e43fcdf4c12c044cd34a073cc18200R285-R296 Probably something to keep? This code flips maxConnWarned to true but doesn't seem do anything about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p.renderer.OnConnectionWarning(activeCount, p.transport.MaxConnsPerHost) handles the rendering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants