fix: ollie_ghost compile — stripPrefixEcho signature and forward declarations
This commit is contained in:
parent
08ec46027e
commit
bb1454f85a
|
|
@ -371,6 +371,11 @@ void OllieGhostProvider::requestCompletion()
|
|||
process->closeWriteChannel();
|
||||
}
|
||||
|
||||
// === Completion post-processing helpers (mirrors agent/complete.go) ===
|
||||
|
||||
static QString stripCompletionNoise(const QString &s);
|
||||
static QString stripPrefixEcho(const QString &result, const QString &prefix = QString());
|
||||
|
||||
void OllieGhostProvider::onCompletionReply(const QString &result)
|
||||
{
|
||||
if (result.trimmed().isEmpty())
|
||||
|
|
@ -530,8 +535,10 @@ static QString stripCompletionNoise(const QString &s)
|
|||
return filtered.join('\n');
|
||||
}
|
||||
|
||||
static QString stripPrefixEcho(const QString &prefix, const QString &result)
|
||||
static QString stripPrefixEcho(const QString &result, const QString &prefix)
|
||||
{
|
||||
if (prefix.isEmpty())
|
||||
return result;
|
||||
int tailMax = 200;
|
||||
if (prefix.size() < tailMax)
|
||||
tailMax = prefix.size();
|
||||
|
|
|
|||
Reference in New Issue