Skip to content

Theorem chat: spec-review completion pass - #198

Merged
Travis-Gilbert merged 1 commit into
mainfrom
fix/theorem-chat-spec-review-completion
Aug 6, 2026
Merged

Theorem chat: spec-review completion pass#198
Travis-Gilbert merged 1 commit into
mainfrom
fix/theorem-chat-spec-review-completion

Conversation

@Travis-Gilbert

Copy link
Copy Markdown
Owner

Summary

  • Pass B: Studio ACP prompt(..., onDelta) forwards agent_message_chunk text (no more stub delta).
  • Pass C: theorem.openChat hidden unless THEOREM_ACP_WS_URL / theorem.agentUrl (acpConfigured).
  • Pass D: SPEC ChatTransport amended; PLAN CR-006 done; Dockerfile health residual documented; EXECUTE-REPORT updated.
  • Pass A: Live unauth /chat still 307 login (no OpenWork proxy); workspace has ACP URL set so Open Chat stays visible after deploy. Signed-in panel/HTML stamp remains optional human smoke.

Test plan

  • pnpm --filter @commonplace/theorem-acp test (20)
  • pnpm --filter theorem-vscode test (64) + build
  • pnpm --filter @commonplace/theorem-chat-register test
  • doctor 26/26
  • After workspace deploy: palette shows Theorem: Open Chat (ACP URL set on service)
  • Optional: signed-in /IDE one-turn + /chat stamp screenshot

Stream ACP agent_message_chunk text into the Studio chat panel, hide Open Chat
when ACP URL is unset, and align SPEC/healthcheck docs with the shipped cutover.
Copilot AI lite review requested due to automatic review settings August 6, 2026 00:02
@Travis-Gilbert
Travis-Gilbert merged commit 05d45e9 into main Aug 6, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Travis-Gilbert
Travis-Gilbert deleted the fix/theorem-chat-spec-review-completion branch August 6, 2026 00:02
@ecc-tools

ecc-tools Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Travis-Gilbert, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 20 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 66c41377-9acc-4224-9b28-a81a62ce4f82

📥 Commits

Reviewing files that changed from the base of the PR and between 0f2ed37 and c14d6ca.

📒 Files selected for processing (15)
  • .harness/checklists/theorem-chat-register--plan-local-20260805a.json
  • apps/theorem-vscode/package.json
  • apps/theorem-vscode/src/agent/acp-chunks.ts
  • apps/theorem-vscode/src/agent/chat-panel.ts
  • apps/theorem-vscode/src/agent/presence.ts
  • apps/theorem-vscode/src/agent/session-opener.ts
  • apps/theorem-vscode/src/config.ts
  • apps/theorem-vscode/src/extension.ts
  • apps/theorem-vscode/test/acp-chat.test.ts
  • docs/plans/theorem-chat-register/EXECUTE-REPORT.md
  • docs/plans/theorem-chat-register/PLAN.md
  • docs/plans/theorem-chat-register/SPEC-THEOREM-CHAT-REGISTER-1.0.md
  • packages/theorem-acp/src/state.test.ts
  • packages/theorem-acp/src/state.ts
  • packaging/workspace/Dockerfile

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR completes a spec-review “completion pass” for the Theorem Chat register cutover, focusing on (1) ACP streaming deltas reaching the chat UI, (2) hiding the Studio “Open Chat” command unless ACP is explicitly configured, and (3) tightening plan/spec/report documentation around the residual workspace healthcheck.

Changes:

  • Forward agent_message_chunk text into the ChatTransport onDelta callback (end-to-end: theorem-acp helper + theorem-vscode adapter + tests).
  • Hide theorem.openChat from the VS Code command palette unless THEOREM_ACP_WS_URL / theorem.agentUrl is set (plus runtime guard + tests).
  • Update SPEC/PLAN/EXECUTE-REPORT and clarify workspace Docker HEALTHCHECK residual.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packaging/workspace/Dockerfile Clarifies that container HEALTHCHECK still targets OpenWork :8787 as a known residual (not product /chat).
packages/theorem-acp/src/state.ts Exposes agentMessageTextFromUpdate helper for extracting assistant chunk text from ACP updates.
packages/theorem-acp/src/state.test.ts Adds unit coverage for agentMessageTextFromUpdate.
docs/plans/theorem-chat-register/SPEC-THEOREM-CHAT-REGISTER-1.0.md Updates ChatTransport contract to prompt(sessionId, text, onDelta) and documents delta semantics + rollback details.
docs/plans/theorem-chat-register/PLAN.md Marks CR-006 as done.
docs/plans/theorem-chat-register/EXECUTE-REPORT.md Updates the execute report to reflect Passes A–D and the residual healthcheck note.
apps/theorem-vscode/test/acp-chat.test.ts Adds tests for chunk forwarding and acpConfigured behavior.
apps/theorem-vscode/src/extension.ts Sets theorem.acpConfigured context and guards theorem.openChat when ACP isn’t configured.
apps/theorem-vscode/src/config.ts Adds acpConfigured derivation and separates “explicit” agent URL from console origin.
apps/theorem-vscode/src/agent/session-opener.ts Extends ACP session prompt to optionally subscribe to session updates and forward chunks during the prompt.
apps/theorem-vscode/src/agent/presence.ts Updates AcpSession.prompt signature to accept optional onDelta.
apps/theorem-vscode/src/agent/chat-panel.ts Removes stub delta and passes onDelta through to ACP prompt.
apps/theorem-vscode/src/agent/acp-chunks.ts Introduces a small filter/adapter to forward only active-session agent_message_chunk updates.
apps/theorem-vscode/package.json Hides theorem.openChat in the command palette unless theorem.acpConfigured is true.
.harness/checklists/theorem-chat-register--plan-local-20260805a.json Updates checklist evidence note to reflect Pass B/C behavior and remaining optional smoke.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants