MCPcopy Create free account
hub / github.com/diillson/chatcli / handleRetryAllChunks

Method handleRetryAllChunks

cli/cli_file_processing.go:718–728  ·  view source on GitHub ↗

Método para reprocessar todos os chunks com falha

()

Source from the content-addressed store, hash-verified

716
717// Método para reprocessar todos os chunks com falha
718func (cli *ChatCLI) handleRetryAllChunks() bool {
719 if len(cli.failedChunks) == 0 {
720 fmt.Println(i18n.T("chunk.no_failed_to_retry"))
721 return false
722 }
723 fmt.Println(i18n.T("chunk.retrying_all_failed", len(cli.failedChunks)))
724 cli.fileChunks = append(cli.failedChunks, cli.fileChunks...)
725 cli.failedChunks = []FileChunk{}
726 cli.lastFailedChunk = nil
727 return cli.handleNextChunk(cli.sessionCtx)
728}
729
730// Método para pular explicitamente um chunk
731func (cli *ChatCLI) handleSkipChunk() bool {

Callers 1

buildRoutesMethod · 0.80

Calls 2

handleNextChunkMethod · 0.95
TFunction · 0.92

Tested by

no test coverage detected