Skip to content

fix: Include full URL when stringifying PromptFieldValue - #10575

Merged
devongovett merged 1 commit into
mainfrom
promptfield-links
Sep 4, 2026
Merged

fix: Include full URL when stringifying PromptFieldValue#10575
devongovett merged 1 commit into
mainfrom
promptfield-links

Conversation

@devongovett

Copy link
Copy Markdown
Member

Alternative to #10565. When submitting a prompt we should include full URLs without stripping https://www. (which we do for display purposes).

@rspbot

rspbot commented Sep 4, 2026

Copy link
Copy Markdown

@rspbot

rspbot commented Sep 4, 2026

Copy link
Copy Markdown
## API Changes

@react-spectrum/ai

/@react-spectrum/ai:PromptFieldValue

 PromptFieldValue {
   Direction: any
   SelectedRange: any
   caretPosition: Position
   constructor: (readonly Array<TokenFieldSegment<T>>, TokenFieldValueOptions) => void
   delete: (Position, Intl.Segmenter, any, any) => this
   deleteLine: (Position, any, any) => this
   endCoalescing: () => void
   findBoundaryWithSegmenter: (Position, Intl.Segmenter, any) => Position | null
   findLineBoundary: (Position, any) => Position | null
   findText: (Position, any, string | RegExp) => Position | null
   redo: () => this
   replaceRange: (Position, Position, string, any) => this
   replaceRangeWithSegments: (Position, Position, Array<TokenFieldSegment>, any) => this
   segments: readonly Array<TokenFieldSegment<T>>
   selectedRange: SelectedRange
   slice: (Position, Position) => this
-  toString: () => string
+  toString: () => void
   tokenize: (string) => Array<TokenFieldSegment>
   undo: () => this
   withCaretPosition: (Position) => this
   withSelectedRange: (SelectedRange) => this

@rspbot

rspbot commented Sep 4, 2026

Copy link
Copy Markdown

Agent Skills Changes

Modified (9)
Install

React Spectrum S2:

npx skills add https://d1pzu54gtk2aed.cloudfront.net/pr/df07fafd5b89f8c475d96aa3c7535c0436e82120/

React Aria:

npx skills add https://d5iwopk28bdhl.cloudfront.net/pr/df07fafd5b89f8c475d96aa3c7535c0436e82120/

@devongovett
devongovett added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 691b3cb Sep 4, 2026
31 checks passed
@devongovett
devongovett deleted the promptfield-links branch September 4, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants