Skip to content

Show only latest agreement version per type - #306

Closed
bokelley wants to merge 2 commits into
mainfrom
bokelley/show-latest-agreement
Closed

bokelley wants to merge 2 commits into
mainfrom
bokelley/show-latest-agreement

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Deduplicates agreement acceptances in the agreements list to display only the most recent version accepted for each agreement type. Users no longer see duplicate entries when they've accepted multiple versions of the same agreement (e.g., Privacy Policy v1.0.0 and v1.1.0).

Changes

  • Modified /api/me/agreements endpoint to filter acceptances to only the latest per agreement type
  • Uses a Map to track and deduplicate entries since database query returns results sorted by accepted_at DESC

🤖 Generated with Claude Code

bokelley and others added 2 commits December 13, 2025 05:46
Deduplicate agreement acceptances to display only the most recent version accepted
for each agreement type (Membership Agreement, Privacy Policy, Terms of Service).
Users no longer see duplicate entries for agreements they've accepted multiple versions of.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@bokelley bokelley closed this Dec 17, 2025
bokelley added a commit that referenced this pull request Mar 10, 2026
Picks up fixes for:
- #306: TaskExecutor now detects plural `errors` array (AdCP schema format)
- #305: formatSuiteResults now includes step-level failure details

Co-Authored-By: Claude Opus 4.6 <[email protected]>
bokelley added a commit that referenced this pull request Mar 10, 2026
* fix: show step-level failure details in Addie test suite output

When test_adcp_agent runs the full test suite and scenarios fail,
Addie was only showing a one-line summary per scenario (from
formatSuiteResults). Users couldn't see which specific step failed
or what the error message was, forcing them into blind debugging loops.

Now includes formatTestResults output for each failing scenario,
which shows step names, error messages, and response previews.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* chore: upgrade @adcp/client to 4.6.0

Picks up fixes for:
- #306: TaskExecutor now detects plural `errors` array (AdCP schema format)
- #305: formatSuiteResults now includes step-level failure details

Co-Authored-By: Claude Opus 4.6 <[email protected]>

* refactor: remove redundant failure details formatting

@adcp/client 4.6.0 formatSuiteResults now includes step-level failure
details natively, so the Addie-side formatTestResults addition is no
longer needed.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
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