Skip to content

Comments

Feat: slack agent enpoint#12

Merged
fbraza merged 2 commits intomainfrom
slack-agent-enpoint
Sep 29, 2025
Merged

Feat: slack agent enpoint#12
fbraza merged 2 commits intomainfrom
slack-agent-enpoint

Conversation

@fbraza
Copy link
Collaborator

@fbraza fbraza commented Sep 29, 2025

Our slack agent can now receive a prompt to post message in the specified channel:

  • Right now the system prompt is very specific but will need to be updated to be done in
  • Test are passing
  • Consider using the config.py for models parameters.
  • CI now include secrets and token with github actions

Should solve #5

Integrations test mostly. No mocking right now

@fbraza fbraza merged commit 7f83174 into main Sep 29, 2025
2 checks passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Comment on lines +16 to +18
def test_read_main():
response = client.post("/slack", json={"user_instruction": f"{instructions}"})
assert response.json()["status"] == "ok"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Guard Slack endpoint test behind env checks

The new integration test posts to the Slack agent and assumes a live OpenRouter/Slack configuration (response.json()["status"] == "ok"). When the SLACK_USER_TOKEN and OPEN_ROUTER_TOKEN secrets are not available—typical for local contributors—the router returns {..., "status": "failed"} and this assertion will fail, making the entire suite unusable. The other Slack tests already skip when tokens are missing; this one should do the same or mock the agent so tests can be run without external credentials.

Useful? React with 👍 / 👎.

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.

1 participant