Skip to content

Navigation Menu

Sign in
Sign up

fix(ai): make annotation analysis reliable on mobile - #759

Open
cha1latte wants to merge 1 commit into
codedogQBY:main from
cha1latte:fix/upstream-chlai-annotation-reliability
Open

fix(ai): make annotation analysis reliable on mobile #759
cha1latte wants to merge 1 commit into
codedogQBY:main from
cha1latte:fix/upstream-chlai-annotation-reliability

Conversation

@cha1latte

@cha1latte cha1latte commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Prefetch the user's matching notes and highlights before model generation, so annotation requests cannot forget that the tool exists.
  • Keep annotation-only turns scoped to getAnnotations, while preserving book retrieval and citations when the user explicitly asks for a comparison with the text.
  • Give citation registration its own budget so citations no longer exhaust the ordinary tool-call allowance.
  • Keep the Android/iOS display awake while any AI response is actively streaming.

Upstream dependency

Validation

  • pnpm --filter @readany/core test — 80 files, 594 tests passed
  • pnpm --filter @readany/app-expo test — 8 files, 18 tests passed
  • pnpm exec tsc --noEmit -p packages/app-expo/tsconfig.json — passed
  • Biome check on all changed files — passed (warning-level existing any diagnostics only)
  • git diff upstream/main...HEAD --check — passed

The repository-wide pnpm lint remains red on the current upstream baseline because of pre-existing CRLF formatting and the vendored 1.9 MiB PDF worker; this PR does not modify those files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /