Show the custom apihost SLACK_API_URL hint only where Run on Slack apps need it
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start with ResolveAPIHost in internal/auth/auth.go and the deploy flow in internal/pkg/platform/deploy.go; trace where the host is resolved and whether SLACK_API_URL is added. Check how env and run handle Run on Slack apps before deciding whether they also need the hint. Done when the hint appears only in relevant cases, includes the full command and /api/, and matches nearby debug or info output.
Written by the indexing model from the issue text.
Description
Description
The env set SLACK_API_URL <host>/api/ hint for a custom API host prints from ResolveAPIHost in internal/auth/auth.go, which runs for every command. The hint only matters for apps that use Run on Slack infrastructure, and it only matters when the CLI doesn't already set the value:
SetSelectedAuthsetsSLACK_API_URLfor local app processes, andrunpasses it to the local Deno runtime.deployininternal/pkg/platform/deploy.goaddsSLACK_API_URLto the Run on Slack environment, but only for hosts that matchIsAPIHostSlackDev.
So the hint shows on commands where there's nothing to do, like auth list, and the one case that needs it, a deploy to a custom host that isn't a dev host, gets the same generic line.
Proposal
- Placement: print the hint from
deploywhen the resolved host isn't production anddeploydoesn't addSLACK_API_URLitself. Decide whetherenvorrunfor a Run on Slack app also warrants it. - Wording: name the apps it applies to and show the full command with the correct value, for example: Apps using Run on Slack infrastructure should set
SLACK_API_URLto use a custom API host. Runslack env set SLACK_API_URL <host>/api/. - Keep it a debug or info message, matching the nearby
deployoutput.
Follows #893, which corrects the value in the current hint to include /api/.
- Dominant language
- Go
- Stars
- 321
- Forks
- 52
- Avg merge
- 17h 44m
- Merged PRs (30d)
- 138
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from slackapi/slack-cli
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Installer aborts on an existing same-named `slack` binary; prefer install + warning over hard abortOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
slackapi/slack-cli#671 · 1 comment ·
Maintainers usually reply within 1 day
-
Tests fail when using fish (and possibly other shells)Possibly taken @Muhtasham claimed this 193 days ago. Openbuild code health
Difficulty 3/5 1-2 days Newbie friendliness 55/100
slackapi/slack-cli#462 · 4 comments ·
Maintainers usually reply within 1 day
-
docs question
Difficulty 5/5 Over a week Newbie friendliness 25/100
slackapi/slack-cli#343 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
server side issue
Difficulty 4/5 3-5 days Newbie friendliness 25/100
slackapi/slack-cli#342 · 2 comments ·
Maintainers usually reply within 1 day
All issues in slackapi/slack-cli
Similar issues
-
Linux 主机 macOS 主机
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Lee-xeo/Claude-Cage#1455 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1137 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Make the HTTP server's keep-alive and headers timeouts configurablePossibly taken @mattgodbolt claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day