Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Slack /list behavior and migrates OpenAI integration toward OpenAI-compatible endpoints and the Responses API, aligning the bot’s UX and LLM calls with new configuration options.
Changes:
- Default
/listto “mine” scope, add/list all, and propagate scope through pagination + edit/delete flows. - Add configurable
openai_base_url(YAML + env) and log it at startup. - Switch OpenAI section classification to the Responses API with JSON-schema constrained output and derive confidence locally.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/integrations/slack/slack.go | Implements list scoping (mine/all), threads scope through interactions, and tweaks copy. |
| internal/integrations/slack/slack_logic_test.go | Adds unit test coverage for parseListScope. |
| internal/integrations/llm/llm.go | Adds Responses API request/response handling + JSON schema output for section classification; local confidence derivation. |
| internal/integrations/llm/llm_test.go | Updates tests for schema output + local confidence logic and adds Responses output extraction test. |
| internal/config/config.go | Adds openai_base_url to config, env override, default, and trailing-slash normalization. |
| internal/config/config_test.go | Verifies OpenAIBaseURL default and env override behavior. |
| internal/app/app.go | Logs OpenAIBaseURL on startup. |
| config.yaml | Documents openai_base_url and sets default. |
| README.md | Updates /list docs and adds OpenAI base URL + Responses API notes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
Author
|
Addressed and resolved all Copilot review threads. Follow-up fixes included:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/listto the caller's own items and add/list allfor the team viewopenai_base_urlfor OpenAI-compatible endpointsTesting
GOCACHE=/tmp/reportbot-go-cache go test ./internal/config ./internal/integrations/llm ./internal/report ./internal/storage/sqliteGOCACHE=/tmp/reportbot-go-cache go test ./internal/integrations/slack -run 'TestHandleBlockActions_Nudge|TestResolveNudgeTarget|TestParseListScope|TestFormatItemDescriptionForList|TestFormatListItemText_AddsLineNumber'