pomdtr / sunbeam

Elevate Your Command Line Experience.
https://sunbeam.sh
MIT License
280 stars 12 forks source link

mode: `search` not returning a payload['query'] #95

Open gwenwindflower opened 5 months ago

gwenwindflower commented 5 months ago

In python:

manifest = {
    "title": "xn",
    "commands": [
        {
            "name": "search_nodes",
            "title": "Search nodes",
            "mode": "search",
        }
    ],
}
if payload["command"] == "search_nodes":
    query = payload["query"]

query is throwing a key error. I dumped the payload out to JSON and there is indeed no query key.

pomdtr commented 5 months ago

Thanks for the bug report, I'll take a look

gwenwindflower commented 5 months ago

thanks! let me know if you need more/better details.