MCPcopy Create free account
hub / github.com/diillson/chatcli / NewConversation

Method NewConversation

cli/hub_sync_test.go:40–47  ·  view source on GitHub ↗
(_ context.Context, _ string)

Source from the content-addressed store, hash-verified

38}
39
40func (f *fakeHubClient) NewConversation(_ context.Context, _ string) (string, error) {
41 f.mu.Lock()
42 defer f.mu.Unlock()
43 f.convCounter++
44 f.convID = fmt.Sprintf("conv-%d", f.convCounter)
45 f.events = nil // ephemeral: rotating prunes the prior thread
46 return f.convID, nil
47}
48
49func (f *fakeHubClient) AppendEvent(_ context.Context, ev models.ConversationEvent) (models.ConversationEvent, error) {
50 f.mu.Lock()

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected