GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cli): attribute HTTP dispatches to CLI by pandec · Pull Request #184 · pandec/t3code

Conversation

@pandec

@pandec pandec commented Sep 1, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

CLI commands dispatched over HTTP carried no origin, so events they produced were indistinguishable from unattributed clients. Upstream pingdotgg#8905 added "cli" to ClientSurface, which removed the schema-divergence reason for leaving them blank.

The HTTP orchestration dispatch route now stamps origin surface "cli" on plain, speech-request, and bootstrap dispatches. TurnStartBootstrap already forwards dispatch options, so thread creation, metadata updates, setup activities, the turn start, and failure cleanup all carry the attribution. The route's only caller is the fork CLI; web, desktop, and mobile keep their WebSocket connection-derived origins.

Rollback note: builds older than the 2026-09-01 sync cannot decode CLI-stamped events.

Tests: persisted-event origin asserted end to end through the real CLI/HTTP/engine path in bin.test.ts, plus option propagation across all six bootstrap commands in TurnStartBootstrap.test.ts.

Implemented by gpt-5.6-sol, reviewed by Claude Fable 5, orchestrated in Claude Code.

Summary by CodeRabbit

  • Improvements
    • CLI-initiated project setup and orchestration actions now consistently carry CLI origin information.
    • Bootstrap tasks, speech requests, and related dispatched operations are better identified as originating from the command-line interface.
    • CLI integration coverage has been expanded to verify origin tracking across project creation and startup workflows.
  • Bug Fixes
    • Corrected origin attribution for setup activity and cleanup dispatches initiated through CLI workflows.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pandec
feat(cli): attribute HTTP dispatches to CLI
888e92c
@pandec

pandec commented Sep 1, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Sep 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
✅ Action performed

Full review finished.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 82c57668-5635-4051-a4fb-fb7b663515a6

📥 Commits

Reviewing files that changed from the base of the PR and between 1af551d and 888e92c.

📒 Files selected for processing (3)
  • apps/server/src/bin.test.ts
  • apps/server/src/orchestration/Services/TurnStartBootstrap.test.ts
  • apps/server/src/orchestration/http.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The HTTP orchestration handler now attaches CLI origin metadata to dispatched commands. Tests verify origin propagation during CLI project creation and bootstrap turn-start handling.

Changes

CLI origin propagation

Layer / File(s) Summary
Propagate CLI origin through HTTP dispatch
apps/server/src/orchestration/http.ts, apps/server/src/orchestration/Services/TurnStartBootstrap.test.ts
HTTP dispatches pass { surface: "cli" } to bootstrap, speech-request, and regular orchestration paths. The bootstrap test uses CLI origin metadata.
Verify CLI origin in integration flow
apps/server/src/bin.test.ts
The live-server helper supports an injected turn-start dispatcher. Integration coverage verifies CLI origin metadata for project creation and bootstrap turn-start commands.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: 🔵 Low · up to 888e9

The PR adds CLI attribution to persisted HTTP-dispatched events without broadening access, but events written by the new build may be unreadable by builds older than the September 1, 2026 contract sync. The change is mergeable with explicit rollout and rollback planning.

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant HTTPDispatch
  participant TurnStartBootstrap
  participant OrchestrationEvents
  CLI->>HTTPDispatch: create project and dispatch bootstrap turn-start
  HTTPDispatch->>TurnStartBootstrap: dispatch with surface cli
  TurnStartBootstrap->>OrchestrationEvents: record CLI origin metadata
  OrchestrationEvents-->>CLI: project.created event with surface cli
Loading

Suggested reviewers: juliusmarminge, t3dotgg

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: attributing HTTP dispatches to the CLI surface.
Description check ✅ Passed The description explains what changed, why the change is needed, test coverage, and rollback impact. It does not use the template headings or include the checklist, but the required information is mos…
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 3…
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.
Full details: Description check

Explanation

The description explains what changed, why the change is needed, test coverage, and rollback impact. It does not use the template headings or include the checklist, but the required information is mostly present and UI changes are not applicable.

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 3 files.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/cli-event-origin

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pandec
pandec merged commit 0db8cb0 into dev Sep 1, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@pandec
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.