Cleaned up utils.nim by removing unnecessary functions.

This commit is contained in:
Jakob Friedl
2025-08-21 17:08:46 +02:00
parent fbb08afe31
commit 0ccafaccdd
3 changed files with 4 additions and 9 deletions

View File

@@ -123,7 +123,8 @@ proc agentInteract*(cq: Conquest, name: string) =
while command.replace(" ", "") != "back":
command = cq.prompt.readLine()
cq.withOutput(handleAgentCommand, command)
cq.handleAgentCommand(command)
# Reset interactAgent field after interaction with agent is ended using 'back' command
cq.interactAgent = nil

View File

@@ -172,4 +172,4 @@ proc startServer*(profilePath: string) =
cq.prompt.showPrompt()
var command: string = cq.prompt.readLine()
cq.withOutput(handleConsoleCommand, command)
cq.handleConsoleCommand(command)