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
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.12
0.1.13
26 changes: 26 additions & 0 deletions packages/tui/internal/tui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,32 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, nil

case "/":
// Check if we're editing text fields that might need "/" character
// Don't intercept "/" if we're editing text in NewEvaluationScreen
if m.currentScreen == NewEvaluationScreen && m.evalState != nil && m.evalState.currentField <= 1 {
// Handle "/" character directly in text fields
s := "/"
switch m.evalState.currentField {
case 0: // AgentURL
runes := []rune(m.evalState.AgentURL)
m.evalState.AgentURL = string(runes[:m.evalState.cursorPos]) + s + string(runes[m.evalState.cursorPos:])
m.evalState.cursorPos++
case 1: // JudgeModel
runes := []rune(m.evalState.JudgeModel)
m.evalState.JudgeModel = string(runes[:m.evalState.cursorPos]) + s + string(runes[m.evalState.cursorPos:])
m.evalState.cursorPos++
}
return m, nil
}
// Don't intercept "/" if we're editing text in ConfigurationScreen
if m.currentScreen == ConfigurationScreen && m.configState != nil &&
m.configState.IsEditing && m.configState.ActiveField == ConfigFieldServerURL {
// Handle "/" character directly in server URL field
m.configState.ServerURL = m.configState.ServerURL[:m.configState.CursorPos] +
"/" + m.configState.ServerURL[m.configState.CursorPos:]
m.configState.CursorPos++
return m, nil
}
// If on scenarios screen, forward to editor for search
if m.currentScreen == ScenariosScreen {
m.scenarioEditor, cmd = m.scenarioEditor.Update(msg)
Expand Down
Loading