Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix(control-ui): correct the Slack credential paths and warn about the URL check

Jose Ramirezbcb401207077
diff --git a/control-ui/app/communication-channels/new/page.tsx b/control-ui/app/communication-channels/new/page.tsx
index 1ee4cce6c..67c21413a 100644
--- a/control-ui/app/communication-channels/new/page.tsx
+++ b/control-ui/app/communication-channels/new/page.tsx
@@ -682,6 +682,14 @@ export default function CreateCommunicationChannelPage() {
The Request URLs point at <code>{normalizedChannelName}</code>, so this
channel has to be created under that name.
</span>
+ <span className="cu-field__hint">
+ Slack checks the URL the moment you save the manifest and will report{' '}
+ <strong>&ldquo;Your URL didn&rsquo;t respond&rdquo;</strong>. That is
+ expected here: the URL names a channel that does not exist yet, so there
+ are no credentials to verify the request against. Finish creating this
+ channel, then press <strong>Retry</strong> on Slack&rsquo;s Event
+ Subscriptions page and it turns green.
+ </span>
</div>
) : null}
<ChannelCredentialsPanel
diff --git a/control-ui/components/ChannelCredentialsPanel/constants.ts b/control-ui/components/ChannelCredentialsPanel/constants.ts
index 3e4fae521..2a37124b9 100644
--- a/control-ui/components/ChannelCredentialsPanel/constants.ts
+++ b/control-ui/components/ChannelCredentialsPanel/constants.ts
@@ -24,7 +24,7 @@ export const CHANNEL_CREDENTIAL_FIELDS: CredentialField[] = [
// so the dialog that hands over the bot token looks complete when it is not.
// Naming the page beats describing what the secret does.
helpText:
- 'In your Slack app: Basic Information → App Credentials → Signing Secret, then Show. It is not in the dialog shown after you install the app — that one only carries the bot token. Used to verify that Events and Interactivity requests really came from Slack.',
+ 'In your Slack app: Settings → Basic Information → App Credentials → Signing Secret, then Show. It is not in the dialog shown after you install the app — that one only carries the bot token. Used to verify that Events and Interactivity requests really came from Slack.',
},
{
channelType: 'slack',
@@ -32,7 +32,7 @@ export const CHANNEL_CREDENTIAL_FIELDS: CredentialField[] = [
label: 'Slack Bot User OAuth Token',
placeholder: 'xoxb-…',
helpText:
- 'In your Slack app: OAuth & Permissions → Bot User OAuth Token, and it only exists once you have installed the app to the workspace. Starts xoxb-, not xapp-. Used to read and send messages.',
+ 'In your Slack app: Features → OAuth & Permissions → Bot User OAuth Token, and it only exists once you have installed the app to the workspace. Starts xoxb-, not xapp-. Used to read and send messages.',
},
{
channelType: 'teams',
diff --git a/control-ui/components/__tests__/ChannelCredentialsPanel.test.tsx b/control-ui/components/__tests__/ChannelCredentialsPanel.test.tsx
index 49d411488..458db2694 100644
--- a/control-ui/components/__tests__/ChannelCredentialsPanel.test.tsx
+++ b/control-ui/components/__tests__/ChannelCredentialsPanel.test.tsx
@@ -475,7 +475,9 @@ describe('ChannelCredentialsPanel — where the Slack credentials live', () => {
renderPanel({ ccName: 'cc-slack', visibleChannelTypes: ['slack'] })
// Must be on the field, not only in the panel note below it: the note is a
// paragraph people skip, and this is the value they cannot locate.
- expect(hintFor('Slack Signing Secret')).toMatch(/Basic Information/i)
+ // "Settings" matters: Slack's sidebar has Basic Information under Settings and
+ // a separate Features group, and the path is useless without the group name.
+ expect(hintFor('Slack Signing Secret')).toMatch(/Settings\s*(?:→|->|>)\s*Basic Information/i)
})
it('warns the signing secret is absent from the post-install dialog', () => {
diff --git a/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx b/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
index 531f91b6a..b816949aa 100644
--- a/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
+++ b/control-ui/components/__tests__/CreateCommunicationChannelPage.test.tsx
@@ -545,6 +545,33 @@ describe('CreateCommunicationChannelPage — Slack app manifest', () => {
expect(link.getAttribute('rel') ?? '').toMatch(/noreferrer|noopener/)
})
+ it('warns that Slack will report the Request URL as unreachable until the channel exists', async () => {
+ // Inherent to handing the manifest over first: the reader authorises a Slack
+ // request by resolving the target channel's signing secret BEFORE answering
+ // the url_verification challenge, so a URL naming a channel that does not
+ // exist yet cannot verify. Slack shows "Your URL didn't respond" in orange the
+ // moment the manifest is saved, which reads as a broken setup unless the page
+ // says otherwise, and the fix is a Retry once the channel is created.
+ vi.stubEnv('NEXT_PUBLIC_WORKFLOW_APPROVAL_READER_BASE_URL', 'https://webhook.example.com')
+ render(
+ <ToastProvider>
+ <CreateCommunicationChannelPage />
+ </ToastProvider>
+ )
+ await goToSlackProviderStep('support-bot')
+ fireEvent.change(document.getElementById('slack-bot-handle')!, {
+ target: { value: 'Evenfire' },
+ })
+ await screen.findByText(/display_information:/)
+
+ const panel = document.querySelector('.cu-channel-provider-panel')
+ const copy = panel?.textContent ?? ''
+ // Either apostrophe: the copy uses a typographic one, and which glyph it is
+ // has nothing to do with whether the warning is present.
+ expect(copy).toMatch(/did(?:n['’]t| not) respond|unreachable/i)
+ expect(copy).toMatch(/Retry/i)
+ })
+
it('offers no manifest until the Slack App Name is set', async () => {
// The app name is the manifest's display_information.name. Emitting one with a
// placeholder would install an app under a name the operator never chose.
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 2c27cfbca..44cac0312 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.409",
+ "version": "0.1.410",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.409",
+ "version": "0.1.410",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index 558010d1b..4acb5bc1a 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.409",
+ "version": "0.1.410",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",