MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / SubmitMessage

Method SubmitMessage

test/ui_runtime_parity_test.go:561–572  ·  view source on GitHub ↗
(ctx context.Context, userInput string, state *agent.AgentState, sessionID ...string)

Source from the content-addressed store, hash-verified

559type delayedSubmitEngine struct{}
560
561func (e *delayedSubmitEngine) SubmitMessage(ctx context.Context, userInput string, state *agent.AgentState, sessionID ...string) <-chan agent.StreamEvent {
562 out := make(chan agent.StreamEvent)
563 go func() {
564 defer close(out)
565 select {
566 case <-time.After(350 * time.Millisecond):
567 out <- agent.NewStreamEvent("done", "", nil)
568 case <-ctx.Done():
569 }
570 }()
571 return out
572}
573
574type cancelAwareSubmitEngine struct{}
575

Callers

nothing calls this directly

Calls 1

NewStreamEventFunction · 0.92

Tested by

no test coverage detected