mirror of
https://github.com/turbot/steampipe.git
synced 2026-03-20 22:00:17 -04:00
* Add test demonstrating bug #4788 - ClosePrompt panics with nil Adds TestClosePromptNilCancelPanic that reproduces the bug where ClosePrompt() panics with a nil pointer dereference when cancelPrompt is nil. This can happen if ClosePrompt is called before the prompt is fully initialized. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix #4788: Add nil check before calling cancelPrompt Prevents panic in ClosePrompt() when cancelPrompt is nil. This can happen if ClosePrompt is called before the prompt is fully initialized. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>