Skip to content

feat: add --force flag and 409 duplicate handling to add command#2

Merged
RolfKoenders merged 1 commit into
mainfrom
5-duplicate-detection
Apr 20, 2026
Merged

feat: add --force flag and 409 duplicate handling to add command#2
RolfKoenders merged 1 commit into
mainfrom
5-duplicate-detection

Conversation

@RolfKoenders

Copy link
Copy Markdown
Member

Summary

  • 409 Conflict responses now throw a descriptive error: This URL is already saved as "Title". Use --force to save anyway.
  • New --force flag on keeply add bypasses the backend duplicate check
  • force?: boolean added to CreateBookmarkPayload

Plan

https://github.com/Keeply-link/docs/blob/main/plans/5-duplicate-detection.md

Issue

Keeply-link/docs#5

Test plan

  • npx tsc --noEmit — clean
  • npm test — 12 tests pass
  • keeply add <already-saved-url> shows helpful duplicate error
  • keeply add <already-saved-url> --force saves successfully

- 409 response throws descriptive error: 'This URL is already saved
  as "Title". Use --force to save anyway.'
- --force flag on add command bypasses the backend duplicate check
- Add force?: boolean to CreateBookmarkPayload type

Implements Keeply-link/docs#5
@RolfKoenders RolfKoenders merged commit 11c42bd into main Apr 20, 2026
2 checks passed
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