[Bug]: Conversation history lost when a Pal has tools enabled AND thinking is on
Describe the bug When a Pal has tools enabled (web_search, datetime, read_url) AND Think is on, the model loses the conversation history. It doesn't see earlier messages in the same chat and treats each new message as the start of the conversation. With Think off, or with the tools removed from the Pal, history works normally.
This leaves no working setup for search plus conversation: in my testing the model only issues tool calls with Think on, so web search and memory never work together.
To Reproduce
- Create a Pal with tools enabled (web_search, datetime, read_url; search provider: Tavily)
- Start a new chat with that Pal and turn Think ON
- Send: My favorite number is 83. Reply only with "OK".
- Send: What is my favorite number?
- See error: the model doesn't know the number. Its reasoning shows no trace of the first message ("The user is asking me what their favorite number is... I don't have personal preferences").
Expected: the model answers 83.
Isolation (same model, same test, new chat each time):
| Setup | Remembers? |
|---|---|
| Pal with tools + Think OFF | yes |
| Pal with tools + Think ON | NO |
| Same Pal, tools removed + Think ON | yes |
| No Pal + Think ON | yes |
"Include thinking in context" ON or OFF makes no difference. Reproduced with both Q4_K_M and Q6_K quantizations.
Possibly related (older, closed): #302
Environment (please complete the following information):
- Device: iPhone 14
- OS: iOS 27.0 (24A437)
- App Version: 1.17.3 (147)
- Device RAM: 6GB
Model Information (required for model/inference crashes):
- Model name: Qwen3.8-2B-Q6_K
- Model source: Downloaded from HuggingFace (via in-app search)
- HuggingFace link: https://huggingface.co/empero-ai/Qwen3.8-2B-Distill-GGUF
- Quantization: Q6_K (also reproduced on Q4_K_M)
- Context length: 16384
- Chat template: model's embedded template (Base Chat Template "custom", left empty), Jinja ON
Screenshots Attached:
- Pal with tools + Think ON: the model forgets the number (reasoning expanded)
- No Pal + Think ON: the model answers 83
- Pal without tools + Think ON: the model answers 83
Source: a-ghorbani/pocketpal-ai