We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26bab00 commit 4b13265Copy full SHA for 4b13265
packages/tui/internal/tui/tui.go
@@ -398,12 +398,16 @@ func (a appModel) executeCommand(command commands.Command) (tea.Model, tea.Cmd)
398
if a.app.Session.Id == "" {
399
return a, nil
400
}
401
- a.app.Client.PostSessionShareWithResponse(
+ response, _ := a.app.Client.PostSessionShareWithResponse(
402
context.Background(),
403
client.PostSessionShareJSONRequestBody{
404
SessionID: a.app.Session.Id,
405
},
406
)
407
+ if response.JSON200 != nil && response.JSON200.Share != nil {
408
+ shareUrl := response.JSON200.Share.Url
409
+ cmds = append(cmds, tea.SetClipboard(shareUrl))
410
+ }
411
case commands.SessionInterruptCommand:
412
413
0 commit comments