Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type App struct {
transcript viewport.Model
input textarea.Model
activeMessages []provider.Message
activities []activityEntry
fileCandidates []string
focus panel
width int
Expand Down
6 changes: 6 additions & 0 deletions internal/tui/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const (
sidebarTitle = "Sessions"
sidebarFilterHint = "Type / to search"
sidebarOpenHint = "Enter to open"
activityTitle = "Activity"
activitySubtitle = "Latest execution events"

draftSessionTitle = "Draft"
emptyConversationText = "No conversation yet.\nAsk NeoCode to inspect or change code, or type /help to browse local commands."
Expand All @@ -61,8 +63,12 @@ const (

focusLabelSessions = "Sessions"
focusLabelTranscript = "Transcript"
focusLabelActivity = "Activity"
focusLabelComposer = "Composer"

activityPreviewEntries = 3

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing documentation for magic numbers

These constants lack comments explaining their purpose and rationale.

Suggested fix:

// activityPreviewEntries is the number of recent activity entries shown in the preview panel
activityPreviewEntries = 3
// maxActivityEntries is the maximum number of activity entries retained in memory to prevent unbounded growth
maxActivityEntries     = 64

maxActivityEntries = 64

messageTagUser = "[ YOU ]"
messageTagAgent = "[ NEO ]"
messageTagTool = "[ TOOL ]"
Expand Down
Loading
Loading