Skip to content

Number long browser chats correctly and name the page limits - #186

Merged
alichherawalla merged 4 commits into
mainfrom
feat/browser-thin-client
Oct 12, 2026
Merged

alichherawalla merged 4 commits into
mainfrom
feat/browser-thin-client

Conversation

@alichherawalla

@alichherawalla alichherawalla commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #182 with fixes from the post-merge audit of Desktop, Desktop Pro and the browser extension. Goes with desktop-pro #98 and browser-extension #11 on feat/browser-thin-client.

  • Wrong branch point in long chats. Desktop lists only a chat's latest 40 turns, and the browser numbered them from 0. Edit or Regenerate then forked from the wrong turn, without any error. Conversations now carry turnCount, an optional field, so the browser can number turns as Desktop does. An older browser ignores it.
  • Page limits are named. MAX_PAGE_TITLE_CHARS and MAX_PAGE_URL_CHARS replace the literals in the shared chat contract, so the browser can fit a page to them. The extension copy matches, apart from its header.
  • Pro update: one-time codes in reveal, card digits, and turn counts in the list.
  • AGENTS.md: Desktop is built for macOS, Windows and Linux.

Validation: typecheck:node passes. 571 related tests pass under Electron's Node, and the pre-push gate passed.

The browser gets the latest 40 turns. turnCount lets it number them by
their place in Desktop's transcript, so Edit and Regenerate branch from
the turn the user picked in a long chat.
The browser fits a page to them before sending, instead of having a
long address silently drop the turn.
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: off-grid-ai/OGAD/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28cb5b6f-aa90-424e-b386-05eb383cfff7

📥 Commits

Reviewing files that changed from the base of the PR and between 49b613d and 4957b7c.


📒 Files selected for processing (5)
  • AGENTS.md
  • pro
  • src/main/extension-bridge/__tests__/bridge-conversations.test.ts
  • src/main/extension-bridge/bridge-chat.ts
  • src/main/extension-bridge/bridge-conversations.ts

 _____________________________________________
< This mutex is like your promises: not held. >
 ---------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • 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.

@alichherawalla
alichherawalla merged commit bd4dbe0 into main Oct 12, 2026
8 of 10 checks passed
@sonarqubecloud

Copy link
Copy Markdown

alichherawalla added a commit that referenced this pull request Oct 12, 2026
#186 counts every stored turn for the browser; the search test still
asserted the list had none.
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