Skip to content

Add Bookface Companion extension - #26974

Closed
jleguina wants to merge 4 commits into
raycast:mainfrom
jleguina:bookface-companion
Closed

jleguina wants to merge 4 commits into
raycast:mainfrom
jleguina:bookface-companion

Conversation

@jleguina

@jleguina jleguina commented Apr 6, 2026 •

Copy link
Copy Markdown

Description

New extension: Bookface Companion for Y Combinator founders. Search Bookface, browse the feed, chat with the YC Agent, and track demo day countdowns from Raycast.

Commands

  • Search Bookface: unified search across founders, companies, investors, deals, knowledge base, and startup library
  • Bookface Feed: browse posts with threaded comments and upvoting
  • Ask YC Agent: chat interface with conversation history
  • Demo Day Countdown: menu bar countdown to demo day

Note on API usage

This extension uses Bookface's authenticated JSON APIs (not scraping). The YC software team has been contacted and is aware of the extension.

Checklist

  • I read the extension guidelines
  • I read the documentation about publishing
  • I ran npm run build and tested this distribution build in Raycast
  • I checked that files in the assets folder are used by the extension itself
  • I checked that assets used by the README are placed outside of the metadata folder

A Raycast extension for YC founders: search Bookface, browse the feed, chat with the YC Agent, and track demo day countdowns.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Apr 6, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

Once the PR is approved and merged, the extension will be available on our Store.

@greptile-apps

greptile-apps Bot commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new Bookface Companion extension with four commands: Algolia-backed search, a feed browser with threaded comments and voting, a YC Agent chat interface, and a menu bar demo day countdown.

  • P1: In yc-agent.tsx, selectedChat is missing from the useCallback dependency array for handleSubmit — the stale closure causes incorrect branch logic when the user switches conversations while a message is in-flight.
  • P1: In search-bookface.tsx, the Algolia search_path field is likely a site-relative path; passing it verbatim to both Action.OpenInBrowser and Action.CopyToClipboard will produce broken links. Prefix it with the Bookface base URL.

Confidence Score: 3/5

Two P1 logic bugs need to be fixed before merging: a stale closure in the agent chat and potentially broken navigation URLs in search results.

The stale selectedChat closure in useCallback will cause incorrect conversation selection logic when switching chats mid-send, and if search_path is a relative path (highly likely given the naming convention), the primary 'Open on Bookface' and 'Copy URL' actions in search results will be non-functional. Both affect core user paths.

extensions/bookface-companion/src/yc-agent.tsx and extensions/bookface-companion/src/search-bookface.tsx

Important Files Changed

Filename Overview
extensions/bookface-companion/src/yc-agent.tsx New YC Agent chat UI — stale selectedChat closure in handleSubmit useCallback causes incorrect conversation-switching behavior
extensions/bookface-companion/src/search-bookface.tsx Algolia-backed search — search_path likely a relative path; passing it directly to OpenInBrowser/CopyToClipboard will produce broken links
extensions/bookface-companion/src/lib/bookface.ts Bookface API client — complex CSRF and cookie handling; agent reply polling uses reasonable stability check; overall functional
extensions/bookface-companion/src/lib/auth.ts SSO + Algolia key extraction flow — manually typed Preferences interface should be removed in favour of the auto-generated type
extensions/bookface-companion/src/bookface-feed.tsx Feed browser with comments and voting — correctly calls mutate() after vote actions
extensions/bookface-companion/src/demo-day-countdown.tsx Menu bar countdown — uses explicit en-US locale and handles missing credentials gracefully
extensions/bookface-companion/src/types.ts Type definitions for feed, auth, and API responses — clean and well-structured
extensions/bookface-companion/package.json Extension manifest — "Other" category should be removed when "Productivity" already applies
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/bookface-companion/src/yc-agent.tsx
Line: 177-214

Comment:
**Stale `selectedChat` closure in `handleSubmit`**

`selectedChat` is read inside the callback but omitted from the `useCallback` dependency array. When the user switches conversations, `handleSubmit` still sees the old `selectedChat` value, so the `selectedChat !== String(newChatId)` guard will fire incorrectly — either skipping `setSelectedChat` when it should run, or calling `loadChat` when the `useEffect` would already handle it.

```suggestion
    [chatId, selectedChat],
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/bookface-companion/src/search-bookface.tsx
Line: 148-155

Comment:
**`search_path` may be a relative URL**

Algolia result payloads for Bookface typically store `search_path` as a site-relative path (e.g. `/companies/acmecorp`). Passing a bare path to `Action.OpenInBrowser` won't navigate to the correct page — Raycast requires an absolute URL. Prefix the value with the Bookface base URL if it is not already absolute.

```suggestion
          {hit.search_path && (
            <Action.OpenInBrowser
              title="Open on Bookface"
              url={hit.search_path.startsWith("http") ? hit.search_path : `https://bookface.ycombinator.com${hit.search_path}`}
            />
          )}
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/bookface-companion/src/search-bookface.tsx
Line: 163-168

Comment:
**Copy URL action affected by the same relative-path issue**

`Action.CopyToClipboard` will copy a bare path instead of a usable link if `search_path` is relative. Apply the same base-URL prefix as the `OpenInBrowser` action.

```suggestion
          {hit.search_path && (
            <Action.CopyToClipboard
              title="Copy URL"
              content={hit.search_path.startsWith("http") ? hit.search_path : `https://bookface.ycombinator.com${hit.search_path}`}
              shortcut={{ modifiers: ["cmd", "opt"], key: "c" }}
            />
          )}
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/bookface-companion/package.json
Line: 8-10

Comment:
**Remove the `"Other"` category**

`"Other"` should only be used when no predefined category fits. Since `"Productivity"` already covers the primary functionality, including `"Other"` adds noise without improving discoverability. Remove it and keep only `"Productivity"`.

**Rule Used:** What: Assign at least one predefined category to e... ([source](https://app.greptile.com/review/custom-context?memory=f49debbf-b6f6-4c0d-9b35-e1927815992b))

How can I resolve this? If you propose a fix, please make it concise.

Greploops — Automatically fix all review issues by running /greploops in Claude Code. It iterates: fix, push, re-review, repeat until 5/5 confidence.
Use the Greptile plugin for Claude Code to query reviews, search comments, and manage custom context directly from your terminal.

Reviews (2): Last reviewed commit: "Fix CI and review feedback: vote re-rend..." | Re-trigger Greptile

jleguina and others added 2 commits April 6, 2026 11:01
- Fix P1: vote actions now call mutate() to trigger React re-render
- Fix TS: Image.Mask.Circle instead of string literal, Icon.Hammer for employer
- Fix P2: hardcode en-US locale, remove Other category, remove manual Preferences type

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@jleguina jleguina closed this Apr 6, 2026
@jleguina jleguina reopened this Apr 6, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Apr 20, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

@raycastbot raycastbot closed this Apr 27, 2026
@chrismessina chrismessina mentioned this pull request Jun 7, 2026
7 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions status: stalled Stalled due inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants