How to reproduce: Build a transaction with ~190 inputs, get the hex and issue `testmempoolaccept [\"{txhex}\"]` in the GUI console. It'll give back a `TX decode failed (code -22)` with a stripped txhex where the end is cut down.
ui->lineEdit->clear();
        cmdBeforeBrowsing = QString();
#ifdef 
        WalletModel* wallet_model = ui->WalletSelector->currentData().value<WalletModel*>();
        if (m_last_wallet_model != wallet_model) {
            if (wallet_model) {
                message(CMD_REQUEST, tr("Executing command using \"%1\" wallet").arg(wallet_model->getWalletName()));
            } else {
                message(CMD_REQUEST, tr("Executing command without any wallet"));
            }
            m_last_wallet_model = wallet_model;
        }
#endif
        message(CMD_REQUEST, QString::fromStdString(strFilteredCmd));
        Q_EMIT cmdRequest(cmd, m_last_wallet_model);
        cmd = QString::fromStdString(strFilteredCmd);
        // R
        history.removeOne(cmd);
        // A
        history.append(cmd);
        // E
        while(history.size() > CONSOLE_HISTORY)
            history.removeFirst();
        // S
        historyPtr = history.size();
        // S
        scrollToEnd();
    }
}
void RPCConsole::browseHistory(int offset)