Skip to content

docs(comments): mark publish-only capabilities - #8

Merged
batuhan merged 2 commits into
masterfrom
agent/comments-readme-local-limits
Sep 26, 2026
Merged

batuhan merged 2 commits into
masterfrom
agent/comments-readme-local-limits

Conversation

@batuhan

@batuhan batuhan commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

The comments README implied that sf dev supported platform services that the local Zero server does not provide.

Scope

  • Mark ctx.spam and ctx.email as publish-only.
  • Explain the limited local ctx.transaction() behavior.
  • Keep ctx.gravatar.avatarUrl as the local exception.

Verification

  • The monorepo routes local service calls to zeroDevServiceUnavailable.
  • ctx.gravatar.avatarUrl remains pure and synchronous.
  • Local ctx.transaction() remains a pass-through inside the invocation snapshot.

sf dev brokers no platform services, so the example's mutation fails at its
first ctx.spam.check. Name the two calls that cannot run locally, the one
Gravatar call that can, and the local transaction boundary.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 95442355-f33e-419c-b706-c9c8a6eec7c5

📥 Commits

Reviewing files that changed from the base of the PR and between e396c52 and 752f882.

📒 Files selected for processing (1)
  • comments/README.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The comments README now documents sf dev limitations, offline Gravatar behavior, published Space requirements, and local versus published transaction boundaries.

Changes

Comments development documentation

Layer / File(s) Summary
Document local development limitations
comments/README.md
Documents unavailable local spam and email services, offline Gravatar behavior, and transaction boundary differences between local invocations and published Spaces.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 752f8

This change only clarifies which comment examples require a published Space and does not alter runtime behavior; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies a documentation change for comments and summarizes the main update: identifying capabilities that require publication.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/comments-readme-local-limits

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 752f882eba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread comments/README.md Outdated
Comment on lines +16 to +17
fail the same way with `zero_email_unavailable`. Posting a comment locally
needs those two calls guarded, or a published Space. `ctx.gravatar.avatarUrl`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify when the email call needs guarding

With the documented default setup, COMMENTS_FROM_EMAIL and COMMENTS_NOTIFY_EMAIL are unset, so the if (from && notify) condition in comments/server/index.ts never invokes ctx.email.send; guarding only ctx.spam.check is enough to post locally. Saying both calls must be guarded incorrectly directs users to modify an unreachable call—clarify that the email call needs guarding only when both optional email variables are configured.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. Fixed in f17d3f6.

ctx.email.send sits inside if (from && notify) in comments/server/index.ts, and both variables are unset until someone runs the optional sf env set pair the README documents further down, so the spam check is the only call that actually blocks a local comment. The text now says guarding that one is enough, and mentions zero_email_unavailable as what happens once the email variables are configured.

View session

ctx.email.send sits behind if (from && notify) and the two email variables are
unset by default, so guarding the spam check alone is enough. Naming both sent
readers after an unreachable call.
@batuhan batuhan changed the title docs(comments): say which parts need a published Space docs(comments): mark publish-only capabilities Aug 31, 2026
@batuhan
batuhan merged commit bfcea36 into master Sep 26, 2026
58 checks passed
@batuhan
batuhan deleted the agent/comments-readme-local-limits branch September 26, 2026 18:05
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