summaryrefslogtreecommitdiffhomepage
path: root/internal/session
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-12 09:44:56 -0500
committeradamdottv <[email protected]>2025-05-12 09:44:56 -0500
commitdfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c (patch)
treeebf8123a492626a31b7767b18a60594879cd70b0 /internal/session
parented9fba99c9e230094ed5d468c88f81469d60c911 (diff)
downloadopencode-dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c.tar.gz
opencode-dfe5fd8d970f76af9db0a7bf9a1e6f0bc01a291c.zip
wip: refactoring
Diffstat (limited to 'internal/session')
-rw-r--r--internal/session/session.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/session/session.go b/internal/session/session.go
index 933df8117..e377bfd21 100644
--- a/internal/session/session.go
+++ b/internal/session/session.go
@@ -12,7 +12,6 @@ import (
"github.com/opencode-ai/opencode/internal/pubsub"
)
-// Session represents a conversation session.
type Session struct {
ID string
ParentSessionID string
@@ -27,16 +26,12 @@ type Session struct {
UpdatedAt int64
}
-// --- Events ---
-
const (
EventSessionCreated pubsub.EventType = "session_created"
EventSessionUpdated pubsub.EventType = "session_updated"
EventSessionDeleted pubsub.EventType = "session_deleted"
)
-// --- Service Definition ---
-
type Service interface {
pubsub.Subscriber[Session]
@@ -77,8 +72,6 @@ func GetService() Service {
return globalSessionService
}
-// --- Service Methods ---
-
func (s *service) Create(ctx context.Context, title string) (Session, error) {
s.mu.Lock()
defer s.mu.Unlock()