Skip to content

agentHost: clarify metadata lint boundary - #333010

Merged
roblourens merged 4 commits into
mainfrom
roblou/agents/islin-rule-disable-instructions-update
Sep 8, 2026
Merged

agentHost: clarify metadata lint boundary#333010
roblourens merged 4 commits into
mainfrom
roblou/agents/islin-rule-disable-instructions-update

Conversation

@roblourens

Copy link
Copy Markdown
Member

Remove per-line untyped metadata lint suppressions by making common/meta the explicit validation boundary. Isolate the Copilot SDK's typed metadata access in a dedicated adapter.\n\n(Written by Copilot)

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Remove per-line untyped metadata lint suppressions by making common/meta the explicit validation boundary. Isolate the Copilot SDK's typed metadata access in a dedicated adapter.\n\n(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 27, 2026 18:37

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.

Copilot review overview

Review tier: Balanced
Findings: 1 Low severity

New issues introduced by this change (1)
Severity Finding
Low severity .github/​instructions/​agentHostTesting.instructions.md — This guidance describes an invariant the tree does not currently satisfy. Protocol _meta readers…
What changed in this PR

Clarifies the intended validation boundary for Agent Host protocol metadata.

Changes:

  • Exempts validating metadata readers from the lint rule.
  • Moves Codex metadata parsing under common/meta.
  • Isolates typed Copilot SDK metadata access in an adapter.
File Description
.eslint-plugin-local/​code-no-untyped-meta-access.ts Updates rule guidance.
.github/​instructions/​agentHostTesting.instructions.md Documents the metadata boundary.
eslint.config.js Adds scoped lint exclusions.
src/​vs/​platform/​agentHost/​common/​codexAccount.ts Preserves the existing import path.
src/​vs/​platform/​agentHost/​common/​meta/​agentChatSurfaceMeta.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​agentElementAttachments.ts Uses hasKey for narrowing.
src/​vs/​platform/​agentHost/​common/​meta/​agentEphemeralSessionMeta.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​agentFeedbackAttachments.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​agentMessageDelegationMeta.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​agentSnapshotAttachmentMeta.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​browserViewAttachments.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​clientPluginCustomizationMeta.ts Removes inline suppression.
src/​vs/​platform/​agentHost/​common/​meta/​codexAccount.ts Houses Codex metadata validation.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotAgentSession.ts Uses the SDK metadata adapter.
src/​vs/​platform/​agentHost/​node/​copilot/​copilotSdkMeta.ts Isolates typed SDK metadata access.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/instructions/agentHostTesting.instructions.md Outdated
Use a type predicate compatible with tsgo and clarify that the common/meta convention applies to new namespaced readers while legacy readers await migration.\n\n(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblourens
roblourens marked this pull request as ready for review September 8, 2026 19:10
@roblourens
roblourens enabled auto-merge (squash) September 8, 2026 19:10
The metadata boundary is now excluded from the rule, so suppressions added on main became unused and failed hygiene.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblourens
roblourens merged commit 58ba154 into main Sep 8, 2026
53 of 55 checks passed
@roblourens
roblourens deleted the roblou/agents/islin-rule-disable-instructions-update branch September 8, 2026 21:32
@vs-code-engineering vs-code-engineering Bot added this to the 1.138.0 milestone Sep 8, 2026
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.

3 participants