Skip to content

fix(sharing): make project acceptance truthful#1350

Merged
kunickiaj merged 1 commit into
mainfrom
07-23-fix_sharing_make_project_acceptance_truthful
Jul 24, 2026
Merged

fix(sharing): make project acceptance truthful#1350
kunickiaj merged 1 commit into
mainfrom
07-23-fix_sharing_make_project_acceptance_truthful

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Description

Make exact-Project invitation acceptance truthful: token consumption enters pending setup until inviter provisioning converges, recipient sync is enabled, restart requirements are explicit, and safe typed errors reach both recipient and owner surfaces.

Closes codemem-mzj1.

Type of Change

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint, pnpm run test)
  • Added/updated tests for changes
  • Manually verified changes work as expected

Core, coordinator API, viewer, worker, and e2e:project-sharing validation passed. The complete stack passed pnpm run check with 3,207 tests.

Checklist

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

kunickiaj commented Jul 23, 2026

Copy link
Copy Markdown
Owner Author

@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: 36bcc669f7

ℹ️ 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 packages/viewer-server/src/routes/sync.ts
Comment thread packages/viewer-server/src/routes/sync.ts
@kunickiaj
kunickiaj force-pushed the 07-23-fix_sharing_make_project_acceptance_truthful branch from 36bcc66 to bb538bf Compare July 23, 2026 21:12
@kunickiaj
kunickiaj force-pushed the 07-23-fix_sharing_make_project_acceptance_truthful branch from bb538bf to 561be53 Compare July 24, 2026 06:35

kunickiaj commented Jul 24, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Jul 24, 9:40 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 24, 9:42 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jul 24, 9:45 PM UTC: @kunickiaj merged this pull request with Graphite.

@kunickiaj
kunickiaj changed the base branch from 07-23-fix_sharing_stabilize_local_identity_bootstrap to graphite-base/1350 July 24, 2026 21:40
@kunickiaj
kunickiaj changed the base branch from graphite-base/1350 to main July 24, 2026 21:40
@kunickiaj
kunickiaj force-pushed the 07-23-fix_sharing_make_project_acceptance_truthful branch from 561be53 to 02e206f Compare July 24, 2026 21:41

@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: 02e206fdef

ℹ️ 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".

const intervalS = Number(config.sync_interval_s);
return {
...config,
sync_enabled: true,

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 Account for environment overrides before reporting sync enabled

When the viewer is started with CODEMEM_SYNC_ENABLED=0, this only writes sync_enabled: true to the JSON config, while readCoordinatorSyncConfig reapplies the environment override on every load. Consequently, the advertised restart leaves the runtime disabled with no sync listener or daemon, even though the invite has already been consumed and the response says sync was enabled; detect the active override and provide actionable remediation instead of treating the file write as successful enablement.

Useful? React with 👍 / 👎.

@kunickiaj
kunickiaj merged commit fc9801d into main Jul 24, 2026
13 checks passed
@kunickiaj
kunickiaj deleted the 07-23-fix_sharing_make_project_acceptance_truthful branch July 24, 2026 21:45
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