Skip to content

Fix target model handling in TUI - #189

Open
GhostInTheShell-444 wants to merge 1 commit into
blacklanternsecurity:devfrom
GhostInTheShell-444:fix/tui-target-model-conversion
Open

GhostInTheShell-444 wants to merge 1 commit into
blacklanternsecurity:devfrom
GhostInTheShell-444:fix/tui-target-model-conversion

Conversation

@GhostInTheShell-444

Copy link
Copy Markdown

Fixes #188

query_targets() returns dictionaries, while the Targets TUI expects model objects with attributes.

This converts paginated target results into the existing Target model before they reach the TUI.

Verified with bbot-server 0.3.1:

  • target names display correctly
  • target IDs display correctly
  • timestamps display correctly
  • target sizes display correctly
  • target actions receive the correct target ID

Convert paginated target dictionaries to Target models before passing them to the Targets TUI.
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@GhostInTheShell-444

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

bls-cla-bot Bot added a commit to blacklanternsecurity/CLA that referenced this pull request Oct 6, 2026
@GhostInTheShell-444

Copy link
Copy Markdown
Author

recheck

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.

TUI Targets show UNKNOWN and break target actions

1 participant