MCPcopy Create free account
hub / github.com/compozy/agh / ResumeSession

Method ResumeSession

internal/cli/client.go:2880–2899  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

2878}
2879
2880func (c *unixSocketClient) ResumeSession(ctx context.Context, id string) (SessionRecord, error) {
2881 var response struct {
2882 Session SessionRecord `json:"session"`
2883 }
2884 path, err := c.sessionScopedPath(ctx, id, "/attach")
2885 if err != nil {
2886 return SessionRecord{}, err
2887 }
2888 if err := c.doJSON(
2889 ctx,
2890 http.MethodPost,
2891 path,
2892 nil,
2893 nil,
2894 &response,
2895 ); err != nil {
2896 return SessionRecord{}, err
2897 }
2898 return response.Session, nil
2899}
2900
2901func (c *unixSocketClient) SessionRecap(ctx context.Context, id string, limit int) (SessionRecapRecord, error) {
2902 var response struct {

Callers 1

Calls 2

sessionScopedPathMethod · 0.95
doJSONMethod · 0.95

Tested by 1