File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
apps/agent-tars/src/main/ipcRoutes Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -140,15 +140,20 @@ export const actionRoute = t.router({
140
140
'utf-8' ,
141
141
) ;
142
142
const artifacts = await parseArtifacts ( messages ) ;
143
- const reportContent = reportHtmlTemplate . replace (
144
- ' <!-- DATA -->' ,
145
- '<script>window.__OMEGA_REPORT_DATA__ = ' +
146
- JSON . stringify ( {
147
- messages,
148
- artifacts,
149
- } ) +
150
- ';</script>' ,
151
- ) ;
143
+ const reportContent = reportHtmlTemplate
144
+ . replace (
145
+ ' <!-- DATA -->' ,
146
+ '<script>window.__OMEGA_REPORT_DATA__ = ' +
147
+ JSON . stringify ( {
148
+ messages,
149
+ artifacts,
150
+ } ) +
151
+ ';</script>' ,
152
+ )
153
+ . replace (
154
+ / < t i t l e > .* ?< \/ t i t l e > / ,
155
+ `<title>${ messages ?. [ 0 ] ?. content || 'Agent TARS' } </title>` ,
156
+ ) ;
152
157
153
158
if ( reportApiUrl ) {
154
159
const tempPath = path . join (
You can’t perform that action at this time.
0 commit comments