Skip to content

fix: add prefix to copy for LLM functionality - #2865

Merged
AlexVarchuk merged 2 commits into
mainfrom
fix/add-wrapper-to-copy-for-llm
Oct 14, 2026
Merged

AlexVarchuk merged 2 commits into
mainfrom
fix/add-wrapper-to-copy-for-llm

Conversation

@AlexVarchuk

@AlexVarchuk AlexVarchuk commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

What/Why/How?

"Copy for LLM" copied a bare YAML/SDL fragment with no context. Partial slices (operation, tag, schema, channel, GraphQL item) are now wrapped with a markdown header naming the API and page, a link to the full spec, and a fenced code block:

# Petstore – List pets

This is a subset of the full specification, which you can find here: https://…/openapi.yaml, limited to the GET /pets operation.

```yaml
<slice>
```

Long info.description values are cut to 100 characters in partial slices

The overview page still copies the plain spec. "Open in Claude/ChatGPT" and agent tools are unchanged.

Reference

Tests

Unit tests added for the wrapper, the hook title, and the copy action. vitest, tsc, and lint pass.

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@AlexVarchuk
AlexVarchuk requested a review from a team as a code owner October 14, 2026 14:27
@AlexVarchuk AlexVarchuk self-assigned this Oct 14, 2026
@AlexVarchuk
AlexVarchuk merged commit fc5ac9a into main Oct 14, 2026
7 checks passed
@AlexVarchuk
AlexVarchuk deleted the fix/add-wrapper-to-copy-for-llm branch October 14, 2026 14:47
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