You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(export): apply message-role filters to exports #406
```
polylogue --message-role user export --format json
```
returns the full message list including assistant + system + unknown. The filter is silently ignored on `export`.
Expected
`--message-role` should filter the `messages` array in the export output, same as it does on `list`. Currently the only workaround is to dump full JSON and post-filter in Python:
```python
import json, subprocess
d = json.loads(subprocess.run(['polylogue', 'export', sid, '--format', 'json'], capture_output=True).stdout)
users = [m for m in d['messages'] if m['role'] == 'user']
```
Why it matters
When extracting user prose across many conversations (e.g. for retrospective intent analysis), having to round-trip every message through Python before discarding 90 % is wasteful. The flag exists; just needs to be wired through to the export path.
Related
Came up while extracting user inputs for thoughtspace-related sessions in #405 territory.
changed the title [-]`--message-role` filter doesn't propagate to `export` subcommand[/-][+]fix(export): apply message-role filters to exports[/+]on Apr 26, 2026
Activity
[-]`--message-role` filter doesn't propagate to `export` subcommand[/-][+]fix(export): apply message-role filters to exports[/+]fix(export): apply --message-role / --dialogue-only to single export
fix(export): apply --message-role / --dialogue-only to single export (#…
fix(export): apply --message-role / --dialogue-only to single export (#…