Skip to content

fix(roulette): open the daily.dev post when a spared bookmark has no url - #75

Merged
finallyjay merged 1 commit into
mainfrom
fix/spare-empty-url
Oct 9, 2026
Merged

finallyjay merged 1 commit into
mainfrom
fix/spare-empty-url

Conversation

@finallyjay

Copy link
Copy Markdown
Owner

Summary

  • Bookmarks of type share, freeform and collection come back with url: "" (88 of 274 in a real pile, found while testing the marketplace skill in fix(marketplace): fall back to commentsPermalink and document DELETE quirks in the skill #73). "Spare it" called window.open("") and opened a blank tab.
  • read() now opens url || commentsPermalink; commentsPermalink was set on every bookmark in that pile and opens the post on daily.dev. If neither is set, no tab is opened.
  • Bookmark type documents the empty url and adds commentsPermalink; the API route already passes it through unchanged.

Test plan

  • New e2e test: sparing a bookmark with url: "" opens its commentsPermalink (fails without the fix)
  • pnpm lint, pnpm format:check, pnpm build, pnpm test (28 passed)

🤖 Generated with Claude Code

Shares, freeform posts and collections come back from the Public API with
url: "" (88 of 274 in a real pile), so "Spare it" opened a blank tab.
Fall back to commentsPermalink, which is always set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
daily-dev-roulette Ready Ready Preview Oct 9, 2026 11:47am UTC

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0ebe27d0-4db7-439e-9805-b182457a401d

📥 Commits

Reviewing files that changed from the base of the PR and between fb88ef5 and cd04b7a.


📒 Files selected for processing (3)
  • src/lib/daily.ts
  • src/scripts/roulette.ts
  • tests/e2e/real-mode.spec.ts


  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@finallyjay
finallyjay merged commit 0e655d4 into main Oct 9, 2026
7 checks passed
@finallyjay
finallyjay deleted the fix/spare-empty-url branch October 9, 2026 11:49

This branch was successfully deployed

1 active deployment
Preview — cd04b7a8 Deployed Oct 9, 2026 by vercel[bot]
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