Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

fix(aslog, msglog): remove message length truncation logic

Dmitry Ngfbf917a18a48
diff --git a/backend/pkg/controller/aslog.go b/backend/pkg/controller/aslog.go
index 9074cccc..769ccf87 100644
--- a/backend/pkg/controller/aslog.go
+++ b/backend/pkg/controller/aslog.go
@@ -165,10 +165,6 @@ func (aslw *flowAssistantLogWorker) putMsg(
streamID int64,
thinking, msg string,
) (int64, error) {
- if len(msg) > defaultMaxMessageLength {
- msg = msg[:defaultMaxMessageLength] + "..."
- }
-
msgID, msgFound := aslw.streamCache.Get(streamID)
ch, workerFound := aslw.results[streamID]
diff --git a/backend/pkg/controller/msglog.go b/backend/pkg/controller/msglog.go
index 085cf9ca..c2048750 100644
--- a/backend/pkg/controller/msglog.go
+++ b/backend/pkg/controller/msglog.go
@@ -195,10 +195,6 @@ func (mlw *flowMsgLogWorker) putMsg(
taskID, subtaskID *int64,
thinking, msg string,
) (int64, error) {
- if len(msg) > defaultMaxMessageLength {
- msg = msg[:defaultMaxMessageLength] + "..."
- }
-
msgLog, err := mlw.db.CreateMsgLog(ctx, database.CreateMsgLogParams{
Type: msgType,
Message: database.SanitizeUTF8(msg),