Skip to content

docs: correct stale type/field names, actions, and wire shapes in the guides#312

Merged
connor4312 merged 6 commits into
microsoft:mainfrom
joshmouch:pr/docs-architecture-accuracy
Jul 8, 2026
Merged

docs: correct stale type/field names, actions, and wire shapes in the guides#312
connor4312 merged 6 commits into
microsoft:mainfrom
joshmouch:pr/docs-architecture-accuracy

Conversation

@joshmouch

Copy link
Copy Markdown
Contributor

What

Doc-vs-types/*.ts drift found while verifying the guides, independent of the
multi-chat (#213) channel move:

Type / field names

  • ModelInfoSessionModelInfo
  • UserMessageMessage
  • ContentRef.mimeTypecontentType
  • AgentInfo.customizationsCustomization[]
  • CompletionsParams.sessionchannel
  • MessageAttachment gains its annotations variant; SessionState gains the
    inputNeeded aggregate.

Actions

  • session/diffsChangedsession/changesetsChanged
  • drop session/activityChanged from the client-dispatched table (it is
    server-originated)
  • drop the redundant session: URI field from session/activeClientSet
    examples (routing is by the envelope channel)
  • changeset/disposedchangeset/cleared

Wire shapes

  • auth-required error data is an AuthRequiredErrorData object
    ({ resources: [...] }), not a bare array
  • ChangesetOperation.status gains 'disabled'
  • SessionSummary.diffschanges
  • terminal actions route by the envelope channel (no terminal: URI field)
  • the protocol version is a SemVer string (0.5.2), not a single integer
  • createSession drops the nonexistent model param
  • a valid ToolCallConfirmationReason ("user-action")

Scope

Docs only — no wire or type changes. Each rename/shape above was re-verified
against the current type on main (e.g. SessionModelInfo in
types/channels-root/state.ts, AuthRequiredErrorData in
types/common/errors.ts, ChangesetOperation.Disabled in
types/channels-changeset/*).

10 files, +28/−36.

Sibling PR (the #213 chat-channel doc move): #311. The two overlap in a few
files; I'll rebase whichever lands second.

… guides

Doc-vs-types drift found while verifying the guides against types/*.ts,
independent of the multi-chat (microsoft#213) channel move:

- Type/field names: ModelInfo -> SessionModelInfo; UserMessage -> Message;
  ContentRef.mimeType -> contentType; AgentInfo.customizations -> Customization[];
  CompletionsParams.session -> channel; MessageAttachment gains its annotations
  variant; SessionState gains the inputNeeded aggregate.
- Actions: session/diffsChanged -> session/changesetsChanged; drop
  session/activityChanged from the client-dispatched table (it is server-
  originated); drop the redundant `session: URI` field from session/activeClientSet
  examples (routing is by the envelope channel); changeset/disposed ->
  changeset/cleared.
- Wire shapes: auth-required error data is an AuthRequiredErrorData object
  ({ resources: [...] }), not a bare array; ChangesetOperation.status gains
  'disabled'; SessionSummary `diffs` -> `changes`; terminal actions route by the
  envelope channel (no `terminal: URI` field); the protocol version is a SemVer
  string (0.5.2), not a single integer; createSession drops the nonexistent
  `model` param; a valid ToolCallConfirmationReason ("user-action").

No wire or type changes; docs only.
Comment thread docs/specification/overview.md Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
connor4312
connor4312 previously approved these changes Jul 7, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
connor4312 and others added 2 commits July 7, 2026 12:33
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
meganrogge
meganrogge previously approved these changes Jul 7, 2026
@joshmouch joshmouch force-pushed the pr/docs-architecture-accuracy branch 2 times, most recently from c1c5d94 to ae8121e Compare July 7, 2026 20:03
@joshmouch

Copy link
Copy Markdown
Contributor Author

Sorry for the branch churn here! I force-pushed a rebase by mistake and it dismissed the approval. I've restored the branch to exactly ae8121ef (the state @meganrogge approved, including @connor4312's fixes), so nothing in the tree changed. Could I get a re-approve when you have a moment? Apologies for the noise 🙏

@connor4312

Copy link
Copy Markdown
Member

No worries, though I think you brought in the .net client on this branch by mistake :)

roblourens
roblourens previously approved these changes Jul 7, 2026
dmitrivMS
dmitrivMS previously approved these changes Jul 7, 2026

@connor4312 connor4312 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

^

@joshmouch joshmouch dismissed stale reviews from dmitrivMS and roblourens via aa110d6 July 7, 2026 21:58
@joshmouch joshmouch force-pushed the pr/docs-architecture-accuracy branch from e3aaa49 to aa110d6 Compare July 7, 2026 21:58
@joshmouch

Copy link
Copy Markdown
Contributor Author

Good catch, thanks, and sorry! That was an errant git add -A sweeping in the untracked .NET client directory. I've stripped it back out, so the branch is docs + schema only again 🙏

@connor4312 connor4312 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@connor4312 connor4312 enabled auto-merge July 8, 2026 16:36
@connor4312 connor4312 merged commit 35a2f7c into microsoft:main Jul 8, 2026
9 checks passed
colbylwilliams added a commit that referenced this pull request Jul 8, 2026
Brings in the MCP server start/stop actions (`session/mcpServerStartRequested`
/ `session/mcpServerStopRequested`, #319), the optional `version` field on
`PluginCustomization` (#317), the `ToolResultTerminalCompleteContent` shell
exit tool-result metadata (#314), and the guide/spec docs accuracy pass (#312).

Resolved conflicts:
- The six CHANGELOGs — kept main's new bullets and appended the canvas bullet
  under the current unreleased section (matching main's per-file placement).
- `clients/rust/crates/ahp/src/reducers.rs` — merged the state-import list so it
  keeps both `CanvasState` and main's new `McpServer*State` types (cargo fmt
  re-wrapped).
- `docs/specification/subscriptions.md` — kept main's edits (dropped
  `unsubscribe` from the channel-scoped command row; reworded the
  resource-watch id as "receiver-assigned") and re-added the canvas rows.

Regenerated all client artifacts and schemas; the canvas channel still
registers its actions at spec 0.5.2 and PROTOCOL_VERSION is unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.

7 participants