diff options
| author | adamdottv <[email protected]> | 2025-05-12 11:38:07 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 11:38:07 -0500 |
| commit | b6524c0982b5e2041e077b9f8011547c1646b4d0 (patch) | |
| tree | 283c08787ae25252ad35b0caaa7245d6aa2487d8 /internal | |
| parent | 425c0f1bab79bbf1e51e58ba09b987e8c9160991 (diff) | |
| download | opencode-b6524c0982b5e2041e077b9f8011547c1646b4d0.tar.gz opencode-b6524c0982b5e2041e077b9f8011547c1646b4d0.zip | |
chore: cleanup
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/tui/components/logs/table.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/tui/components/logs/table.go b/internal/tui/components/logs/table.go index 1bec9c787..47cc6334b 100644 --- a/internal/tui/components/logs/table.go +++ b/internal/tui/components/logs/table.go @@ -29,7 +29,6 @@ type tableCmp struct { type selectedLogMsg logging.Log -// Message for when logs are loaded from the database type logsLoadedMsg struct { logs []logging.Log } @@ -48,7 +47,7 @@ func (i *tableCmp) fetchLogs() tea.Cmd { var logs []logging.Log var err error - sessionId := "" //session.CurrentSessionID() + sessionId := "" // TODO: session.CurrentSessionID() // Limit the number of logs to improve performance const logLimit = 100 @@ -160,9 +159,6 @@ func (i *tableCmp) BindingKeys() []key.Binding { func (i *tableCmp) updateRows() { rows := make([]table.Row, 0, len(i.logs)) - // Logs are already sorted by timestamp (newest first) from the database query - // Skip the expensive sort operation - for _, log := range i.logs { // Format timestamp as time timeStr := time.UnixMilli(log.Timestamp).Format("15:04:05") |
