Implement inbox read cursors for unread threads
This commit is contained in:
@@ -3,7 +3,6 @@ package inbox
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"ai-workflow-skill/internal/db"
|
||||
"ai-workflow-skill/internal/protocol"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
@@ -16,16 +15,12 @@ func newInitCmd(opts *rootOptions) *cobra.Command {
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
ctx := cmd.Context()
|
||||
|
||||
sqlDB, err := db.Open(ctx, opts.dbPath)
|
||||
sqlDB, err := openInboxDB(ctx, opts.dbPath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer sqlDB.Close()
|
||||
|
||||
if err := db.ApplyMigrations(ctx, sqlDB); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
resp := protocol.Success{
|
||||
OK: true,
|
||||
Command: "init",
|
||||
|
||||
Reference in New Issue
Block a user