Skip to content

feat(agentstudio): expose conversation impact analytics - #300

Open
leonardocuco wants to merge 2 commits into
mainfrom
feat/cec-1883-conversation-impact-analytics
Open

leonardocuco wants to merge 2 commits into
mainfrom
feat/cec-1883-conversation-impact-analytics

Conversation

@leonardocuco

@leonardocuco leonardocuco commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The Agent Studio API supports requesting impact analytics in conversation lists, but the CLI cannot currently send the corresponding option.

Change

  • Add --include-impact-analytics to agentstudio conversations list using the existing Go SDK request option.
  • Preserve the API default when the flag is omitted and forward explicit true and false values.
  • Cover filtering, JSON output, and degraded analytics responses using mocked HTTP requests.

The current Go SDK drops impactAnalytics: null during deserialization; analyticsDegraded: true is retained in the CLI output. This pre-existing SDK behavior is outside this PR's scope.

Verification

  • go generate ./...
  • go test ./...
  • go build ./...
  • git diff --check

Related to CEC-1883. Draft during the code freeze; no deployment or release.

@leonardocuco

Copy link
Copy Markdown
Contributor Author

Claude Code reviewed this change at eba8874 for the author: 4 findings, all minor, none fixed yet. No bugs found.

  • pkg/cmd/conversations/list/list.go:108: with --include-impact-analytics, a per-conversation impactAnalytics: null is dropped on output, so analyticsDegraded: true is the only sign that data is missing. Left: minor, the author may want to document it in the flag help.
  • pkg/cmd/conversations/list/list.go:75: the flag registration is one very long line; golines would wrap it like the --include-feedback flag above it. Left: formatting only.
  • pkg/cmd/conversations/list/list.go:75: the flag description differs from the one on conversations get and does not say what null or analyticsDegraded means. Left: wording only.
  • pkg/cmd/conversations/list/list_test.go:146: the table test gates some assertions on the case name and edits the response body by whitespace replacement, which is brittle. Left: minor test cleanup.

@leonardocuco
leonardocuco marked this pull request as ready for review November 30, 2026 14:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T14:12:17.494740Z eba8874 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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