Skip to content

feat: include link URLs in interactive snapshot mode#666

Open
juliobrasa wants to merge 1 commit intovercel-labs:mainfrom
juliobrasa:feat/snapshot-include-hrefs
Open

feat: include link URLs in interactive snapshot mode#666
juliobrasa wants to merge 1 commit intovercel-labs:mainfrom
juliobrasa:feat/snapshot-include-hrefs

Conversation

@juliobrasa
Copy link

Summary

In interactive mode (snapshot -i), all metadata lines were discarded — including `/url:` entries under links. This made it impossible for agents to see where links point to.

Now `/url:` metadata lines are preserved in interactive snapshots, giving agents access to both link text and destination.

Before

```

  • link "Documentation" [ref=e1]
    ```

After

```

Non-interactive snapshots are unaffected.

Test plan

  • TypeScript compiles without errors
  • `snapshot -i` shows /url: under link elements
  • Non-interactive snapshot unchanged

Closes #490

🤖 Generated with Claude Code

In interactive mode (`snapshot -i`), all metadata lines were discarded
including `/url:` entries under links. This made it impossible to see
where links point to in interactive snapshots.

Now `/url:` metadata lines are preserved in interactive mode, so agents
can see both the link text and its destination.

### Before (snapshot -i)
```
- link "Documentation" [ref=e1]
```

### After (snapshot -i)
```
- link "Documentation" [ref=e1]:
    - /url: https://docs.example.com
```

Closes vercel-labs#490

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Mar 6, 2026

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

support hrefs in snapshot mode with an option

1 participant