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
-**Goal 1:** Work on implementing saving debug history into the Sugar Journal.
26
26
-**Goal 2:** Polish existing codebase in preparation for final review.
27
+
-**Goal 3:** Improve the Markdown parser for more readable debug responses in the terminal.
28
+
-**Goal 4:** Conduct end-to-end testing of the `/debug` endpoint.
27
29
28
30
---
29
31
30
32
## This Week’s Achievements
31
33
32
34
1.**Worked on saving the debugger response in the sugar journal**
33
-
- Learn how the activity save the data in sugar journal using the `write_file()` and `read_file()` methods.
34
-
- Current workflow only saves the source tab data, I implimented the logic to also save the terminal data.
35
+
- Explored how activities interact with the Journal using the `write_file()` and `read_file()` methods.
36
+
- Extended the default workflow (which only saves source tab data) to also capture **debugging terminal outputs**.
37
+
- Designed a JSON-based structure to record **code, errors, and LLM responses** for each session.
35
38
36
39
2.**Refactoring of codebase**
37
-
- Start to work on refactoring my committed code based on mentors feedback.
38
-
- This ensures seamless integration of Sugar-Ai with Pippy.
40
+
- Began cleaning up previously committed code based on mentor feedback.
41
+
- Improved function naming, modularized some logic, and reduced redundancy.
42
+
- Focused on ensuring **seamless integration between Sugar-AI and Pippy**, reducing chances of UI freeze or broken API calls.
43
+
44
+
3.**Markdown Parser Improvements**
45
+
- Iterated on the custom Markdown parser to better format LLM responses.
46
+
- Ensured that **bold keywords, bullet lists, and code snippets** appear cleanly in the GTK terminal.
47
+
- Began testing rendering consistency with multiple LLM outputs.
48
+
49
+
4.**End-to-End Workflow Testing**
50
+
- Tested the complete flow: Pippy code → API call to Sugar-AI → Debugging response → Display in terminal.
51
+
- Verified data integrity across each step, ensuring nothing is lost or malformed in transmission.
39
52
40
53
---
41
54
42
55
## Challenges & How I Overcame Them
43
56
44
-
-**Challenge:** Understanding how sugar journal works.
45
-
**Solution:** Discussed with mentors and studied the documentation.
57
+
-**Challenge:** Understanding how the Sugar Journal stores and restores activity state.
58
+
**Solution:** Based on discussion with my mentors I went through the Sugar toolkit documentation, experimented with other activities and learn about the `write_file()` and `read_file()` methods .
59
+
60
+
-**Challenge:** Formatting inconsistencies in Markdown parsing.
61
+
**Solution:** Added step-by-step rendering checks and created a fallback for unrecognized Markdown syntax.
46
62
47
63
---
48
64
49
65
## Key Learnings
50
66
51
-
- Learned about the importance of journaling.
67
+
- Learned about the importance of journaling.
68
+
- Improved skills in **code refactoring**, focusing on maintainability and integration.
52
69
53
70
---
54
71
55
72
## Next Week’s Roadmap
56
73
57
74
- Raise the final PR for Pippy.
58
-
- Prepare final project report.
75
+
- Complete the **project final report** and submit for evaluation.
0 commit comments